﻿:root {
  --bg: #050505;
  --bg-soft: #111111;
  --text: #ffffff;
  --muted: #d9d9d9;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #3b82ff;
  --blue-deep: #081d63;
  --blue-soft: #8fc1ff;
  --card: rgba(255, 255, 255, 0.96);
  --card-text: #252525;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

/* Dark admin dashboard theme */
.admin-body {
  --admin-bg: #171a22;
  --admin-bg-soft: #20242e;
  --admin-bg-panel: #242933;
  --admin-bg-panel-2: #1d212a;
  --admin-border: rgba(139, 148, 170, 0.18);
  --admin-border-strong: rgba(58, 164, 255, 0.36);
  --admin-text: #d7d9e2;
  --admin-muted: #9499a8;
  --admin-purple: #3aa4ff;
  --admin-purple-soft: #78c5ff;
  --admin-blue: #3aa4ff;
  --admin-green: #58c777;
  --admin-orange: #f4b94f;
  --admin-red: #ff6464;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -10%, rgba(58, 164, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(58, 164, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #232731 0%, var(--admin-bg) 18%, #151820 100%);
  color: var(--admin-text);
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
  z-index: 0;
}

.admin-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  background: transparent;
}

.admin-sidebar {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #222731;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 54px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.admin-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 32px 28px 56px;
}

.admin-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 68px;
  padding: 0 4px 24px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-brand img {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(58, 164, 255, 0.34);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(58, 164, 255, 0.22);
}

.admin-brand strong {
  color: #f2f3f7;
  font-size: 1rem;
  letter-spacing: 0;
}

.admin-brand span {
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-menu {
  display: grid;
  gap: 4px;
  padding-top: 22px;
}

.admin-menu-group {
  display: grid;
  gap: 5px;
}

.admin-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #c4c7d2;
  font-weight: 700;
  transition: transform 200ms ease, color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.admin-menu-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 11px;
  border-radius: 50%;
  background: rgba(148, 153, 168, 0.56);
  box-shadow: 0 0 0 rgba(58, 164, 255, 0);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  transform: translateX(-2px);
  color: #ffffff;
  background: rgba(58, 164, 255, 0.12);
  border-color: rgba(58, 164, 255, 0.24);
}

.admin-menu-item:hover::before,
.admin-menu-item.active::before {
  background: var(--admin-purple);
  box-shadow: 0 0 16px rgba(58, 164, 255, 0.72);
}

.admin-submenu {
  display: grid;
  gap: 5px;
  padding: 2px 26px 8px 0;
}

.admin-submenu a {
  position: relative;
  padding: 9px 12px;
  border-radius: 10px;
  color: #8f94a4;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-submenu a::before {
  right: -13px;
  width: 6px;
  height: 6px;
  background: rgba(58, 164, 255, 0.55);
}

.admin-submenu a.active {
  color: #ffffff;
  background: rgba(58, 164, 255, 0.16);
  border-color: rgba(58, 164, 255, 0.28);
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--admin-border);
}

.admin-ghost-link {
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: #aeb3c2;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-topbar {
  min-height: 108px;
  align-items: center;
  margin: -32px -28px 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(35, 39, 49, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.admin-topbar p {
  margin: 0 0 7px;
  color: var(--admin-purple-soft);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.admin-topbar h1 {
  color: #f2f3f7;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}

.admin-pill,
.admin-add-link,
.admin-save-btn {
  border: 1px solid rgba(58, 164, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, #218cff, #55b8ff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(58, 164, 255, 0.22);
}

.admin-pill {
  padding: 12px 18px;
}

.admin-pill-danger {
  border-color: rgba(255, 100, 100, 0.5);
  background: linear-gradient(135deg, #a93645, #ff6464);
  color: #ffffff;
}

.admin-dashboard-grid,
.admin-laws-grid {
  gap: 22px;
}

.admin-dashboard-card,
.admin-editor-panel,
.admin-applicant-group,
.admin-law-card,
.admin-empty-state,
.admin-image-item {
  background: linear-gradient(180deg, rgba(38, 43, 54, 0.98), rgba(30, 34, 43, 0.98));
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 45px rgba(0, 0, 0, 0.18);
}

.admin-dashboard-card,
.admin-editor-panel {
  padding: 24px;
}

.admin-card-kicker,
.admin-section-heading p,
.admin-dashboard-card p,
.admin-law-card p,
.admin-law-meta,
.admin-hint,
.admin-save-status,
.admin-empty-state p,
.admin-applicant-card-head p,
.admin-applicant-card-head span {
  color: var(--admin-muted);
}

.admin-dashboard-card h2,
.admin-editor-panel h2,
.admin-section-heading h2,
.admin-law-card h3,
.admin-applicant-group-head h2,
.admin-applicant-card-head h3,
.admin-empty-state h3 {
  color: #eef0f7;
}

.admin-editor-panel label,
.admin-checkbox-row span,
.admin-answer-list dt {
  color: #cfd3df;
}

.admin-editor-panel input,
.admin-editor-panel select,
.admin-editor-panel textarea,
.admin-select,
.admin-panel input,
.admin-panel textarea {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #1a1e27;
  color: #f0f2f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.admin-editor-panel input:focus,
.admin-editor-panel select:focus,
.admin-editor-panel textarea:focus,
.admin-select:focus {
  outline: none;
  border-color: rgba(58, 164, 255, 0.8);
  background: #1c212c;
  box-shadow: 0 0 0 3px rgba(58, 164, 255, 0.16);
}

.admin-editor-panel textarea {
  min-height: 160px;
}

.admin-mini-btn,
.admin-delete-btn,
.admin-card-btn,
.admin-ghost-link {
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.admin-mini-btn,
.admin-card-btn {
  border: 1px solid rgba(58, 164, 255, 0.28);
  background: rgba(58, 164, 255, 0.12);
  color: #cfe8ff;
}

.admin-delete-btn,
.admin-card-btn.danger {
  border: 1px solid rgba(255, 100, 100, 0.22);
  background: rgba(255, 100, 100, 0.1);
  color: #ff9a9a;
}

.admin-law-badge,
.admin-applicant-group-head > span,
.admin-status-pill {
  border: 1px solid rgba(58, 164, 255, 0.28);
  background: rgba(58, 164, 255, 0.14);
  color: #d9efff;
}

.admin-status-pill.success {
  border-color: rgba(88, 199, 119, 0.28);
  background: rgba(88, 199, 119, 0.12);
  color: #8ee1a5;
}

.admin-status-pill.failure {
  border-color: rgba(255, 100, 100, 0.28);
  background: rgba(255, 100, 100, 0.12);
  color: #ff9a9a;
}

.admin-status-pill.pending {
  border-color: rgba(244, 185, 79, 0.3);
  background: rgba(244, 185, 79, 0.12);
  color: #ffd27a;
}

.admin-applicant-card {
  background: #1d222b;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  box-shadow: none;
}

.admin-applicant-card-head {
  border-bottom-color: var(--admin-border);
}

.admin-answer-list div {
  background: #181c25;
  border-color: rgba(255, 255, 255, 0.06);
}

.admin-answer-list dd {
  color: #d7d9e2;
}

.admin-image-item img {
  border-radius: 10px;
}

.admin-save-btn {
  padding: 12px 20px;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .admin-pill:hover,
  .admin-add-link:hover,
  .admin-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(58, 164, 255, 0.32), 0 0 22px rgba(58, 164, 255, 0.18);
  }

  .admin-card-btn:hover,
  .admin-mini-btn:hover,
  .admin-ghost-link:hover,
  .admin-submenu a:hover {
    transform: translateX(-2px);
    color: #ffffff;
    background: rgba(58, 164, 255, 0.18);
    border-color: rgba(58, 164, 255, 0.36);
  }

  .admin-card-btn.danger:hover,
  .admin-delete-btn:hover {
    background: rgba(255, 100, 100, 0.16);
    border-color: rgba(255, 100, 100, 0.32);
  }

  .admin-dashboard-card:hover,
  .admin-law-card:hover,
  .admin-applicant-card:hover {
    transform: translateY(-3px);
    border-color: rgba(58, 164, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 20px 44px rgba(0, 0, 0, 0.24);
  }
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-main {
    grid-column: 1;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    border-left: 0;
    box-shadow: none;
  }

  .admin-topbar {
    margin: 0 0 24px;
    border-radius: 0 0 16px 16px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Changa", sans-serif;
  background: #f5f8ff;
  color: var(--text);
  overflow-x: hidden;
}

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

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

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  z-index: 2;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #2764ea;
  z-index: -1;
}

.login-btn,
.primary-btn,
.secondary-btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-btn {
  justify-self: start;
  background: #060606;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.login-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 1.02rem;
  font-weight: 700;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 180ms ease;
}

.nav a:hover::after {
  width: 100%;
}

.brand-mini,
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(140, 200, 255, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(34, 104, 255, 0.9), rgba(7, 9, 18, 0.96));
  border: 4px solid rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 28px rgba(71, 141, 255, 0.35);
}

.brand-mini {
  width: 50px;
  height: 50px;
}

.brand-mark {
  width: 158px;
  height: 158px;
  margin: 0 auto 18px;
}

.brand-mini img,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 60vh;
  overflow: clip;
  padding: 48px 16px 170px;
  background: linear-gradient(180deg, #2764ea 0%, #173b9b 58%, #09102c 100%);
}

.hero-glow {
  position: absolute;
  inset: auto 50% 130px auto;
  width: 420px;
  height: 420px;
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(39, 100, 234, 0.12), transparent 65%);
  filter: blur(20px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
}

.eyebrow {
  margin: 0;
  font-family: "Marhey", cursive;
  font-size: clamp(1rem, 2.5vw, 1.75rem);
}

.hero h1 {
  margin: 28px 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.25;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.store-hero {
  min-height: 52vh;
  padding-bottom: 210px;
}

.jobs-hero {
  min-height: 42vh;
  padding-bottom: 165px;
  background: linear-gradient(180deg, #2764ea 0%, #2764ea 58%, #edf3ff 100%);
}

.jobs-hero-content {
  width: min(900px, 100%);
  padding-top: 34px;
}

.jobs-hero-content h1 {
  margin: 18px 0 0;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.12;
}

.store-hero-content {
  width: min(980px, 100%);
  padding-top: 42px;
}

.store-hero-content h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.15;
}

.rules-hero {
  min-height: 48vh;
  padding-bottom: 210px;
}

.rules-hero-content {
  width: min(860px, 100%);
  padding-top: 48px;
}

.rules-hero-content h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
}

.test-hero {
  min-height: 48vh;
  padding-bottom: 170px;
  background: linear-gradient(180deg, #2764ea 0%, #173b9b 58%, #09102c 100%);
}

.test-hero-content {
  width: min(860px, 100%);
  padding-top: 32px;
}

.test-hero-content h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
}

.store-copy {
  width: min(720px, 100%);
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1.8;
}

.store-filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.filter-pill {
  padding: 11px 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  color: #ffffff;
  background: transparent;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

.primary-btn {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: var(--shadow);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.wave-divider {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 220px;
  overflow: hidden;
}

.wave-divider span {
  position: absolute;
  width: 280%;
  right: -90%;
  border-radius: 42% 58% 0 0 / 100% 100% 0 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.wave-divider span:nth-child(1) {
  bottom: 0;
  height: 120px;
  background: rgba(255, 255, 255, 0.95);
  animation: waveDriftA 4.5s ease-in-out infinite;
}

.wave-divider span:nth-child(2) {
  bottom: 34px;
  height: 106px;
  background: rgba(255, 255, 255, 0.48);
  animation: waveDriftB 6s ease-in-out infinite;
}

.wave-divider span:nth-child(3) {
  bottom: 68px;
  height: 94px;
  background: rgba(255, 255, 255, 0.28);
  animation: waveDriftC 7.5s ease-in-out infinite;
}

@keyframes waveDriftA {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(24%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes waveDriftB {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-28%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes waveDriftC {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(22%);
  }
  100% {
    transform: translateX(0);
  }
}

.stream-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.stream-section {
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.section-heading {
  text-align: center;
  color: #111111;
}

.section-heading p {
  margin: 0 0 6px;
  color: #174ac7;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.stream-card {
  margin: 28px auto 0;
  width: min(920px, 100%);
  background: var(--card);
  color: var(--card-text);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 38px 28px;
  text-align: center;
}

.stream-illustration {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.screen {
  width: min(200px, 100%);
  aspect-ratio: 1.25;
  background: #faf7f7;
  border: 1px solid #a9a2a2;
  padding: 18px 10px 10px;
  position: relative;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 7px auto auto 0;
  width: 100%;
  height: 8px;
  background:
    linear-gradient(90deg, #8a8a8a 18%, transparent 18% 82%, #8a8a8a 82%);
}

.screen-bar {
  position: absolute;
  top: 14px;
  right: 50%;
  transform: translateX(50%);
  width: 50%;
  height: 4px;
  background: #c3bdbd;
  border-radius: 999px;
}

.avatar {
  width: 74px;
  height: 74px;
  margin: 26px auto 0;
  border-radius: 24px 24px 18px 18px;
  background:
    radial-gradient(circle at 48% 32%, #ffb5b5 0 17%, transparent 18%),
    linear-gradient(180deg, #40384f 0 42%, #2f2a38 42%);
}

.stream-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.stream-card p {
  margin: 0;
  color: #545454;
}

.stream-player-shell {
  display: grid;
  gap: 18px;
}

.stream-player-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stream-arrow-btn {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(39, 100, 234, 0.18);
  border-radius: 50%;
  background: #f2f7ff;
  color: #143b68;
  font: inherit;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.stream-nav-count {
  color: #3f5f86;
  font-weight: 700;
}

.stream-player-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: #0b0f19;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stream-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #000000;
}

.stream-player-meta {
  text-align: right;
}

.stream-player-meta h3 {
  margin: 0 0 8px;
}

.stream-player-meta p {
  margin: 0;
}

.stream-links-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stream-link-pill {
  border: 1px solid rgba(39, 100, 234, 0.18);
  border-radius: 999px;
  background: #f2f7ff;
  color: #143b68;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.stream-link-pill span {
  display: inline-block;
  margin-inline-start: 8px;
  color: rgba(20, 59, 104, 0.65);
  font-size: 0.88rem;
}

.stream-link-pill.active {
  background: linear-gradient(135deg, #8ad0ff, #d8f2ff);
  border-color: rgba(39, 100, 234, 0.3);
}

.store-section {
  width: min(1120px, calc(100% - 32px));
  margin: -110px auto 0;
  position: relative;
  z-index: 2;
}

.rules-section {
  width: min(1120px, calc(100% - 32px));
  margin: -120px auto 0;
  position: relative;
  z-index: 2;
}

.test-section {
  width: min(1120px, calc(100% - 32px));
  margin: -80px auto 0;
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}

.jobs-section {
  width: min(1280px, calc(100% - 32px));
  margin: -90px auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 54px;
}

.jobs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: #6e7f99;
  font-weight: 700;
}

.jobs-category + .jobs-category {
  margin-top: 36px;
}

.jobs-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.jobs-category-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(39, 100, 234, 0.12), rgba(23, 48, 77, 0.25));
}

.jobs-category-head h2 {
  margin: 0;
  color: #172e47;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.jobs-grid-narrow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(860px, 100%);
  margin-inline-start: auto;
}

.job-card {
  display: grid;
  gap: 16px;
  min-height: 330px;
  padding: 18px 20px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 13px;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
}

.job-badge.open {
  background: #37a8ff;
}

.job-badge.closed {
  background: #e54857;
}

.job-icon {
  color: #0f0f0f;
  font-size: 2.2rem;
  line-height: 1;
}

.job-card h3 {
  margin: 0;
  color: #0f0f0f;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: right;
}

.job-card p {
  margin: 0;
  color: #2a2a2a;
  line-height: 1.75;
  font-size: 0.98rem;
  text-align: right;
}

.job-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.job-stats div {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(143, 173, 220, 0.55);
  background: #ffffff;
  text-align: center;
}

.job-stats strong {
  color: #1d2d43;
  font-size: 0.98rem;
  font-weight: 700;
}

.job-stats span {
  color: #495b74;
  font-size: 0.9rem;
}

.job-progress {
  position: relative;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #e3e7ed;
}

.job-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 62px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4cb14d, #65c054);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.job-card-open .job-progress span {
  background: linear-gradient(90deg, #f0ad31, #eba72b);
}

.job-card-closed .job-progress span {
  background: linear-gradient(90deg, #f0ad31, #eba72b);
}

.job-card-success .job-progress span {
  background: linear-gradient(90deg, #4cb14d, #65c054);
}

.job-apply-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

body.modal-open {
  overflow: hidden;
}

.jobs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: start center;
  padding: 30px 18px;
  background: rgba(0, 0, 0, 0.62);
}

.jobs-modal {
  width: min(500px, calc(100vw - 36px));
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.jobs-modal-head {
  padding: 18px 22px 16px;
  border-bottom: 1px solid #e6e6e6;
}

.jobs-modal-head h2 {
  margin: 0;
  color: #343434;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

.jobs-modal-body {
  padding: 20px 24px 10px;
}

.jobs-modal-body h3 {
  margin: 0 0 22px;
  color: #303030;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: right;
}

.jobs-modal-copy {
  display: grid;
  gap: 16px;
  color: #444444;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: right;
}

.jobs-modal-copy p {
  margin: 0;
}

.jobs-modal-form {
  display: grid;
  gap: 18px;
  padding: 18px 16px 14px;
}

.jobs-form-field {
  display: grid;
  gap: 10px;
}

.jobs-form-field label {
  color: #4a4a4a;
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: right;
}

.jobs-form-field input,
.jobs-form-field select {
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #ccd4dd;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: right;
}

.jobs-form-field select {
  cursor: pointer;
}

.jobs-form-field input:focus,
.jobs-form-field select:focus {
  outline: none;
  border-color: #51aff0;
  box-shadow: 0 0 0 3px rgba(81, 175, 240, 0.14);
}

.jobs-modal-actions {
  display: flex;
  justify-content: flex-start;
  padding: 18px 16px 14px;
  border-top: 1px solid #e6e6e6;
}

.jobs-modal-confirm {
  min-width: 74px;
  padding: 9px 14px;
  border: 0;
  border-radius: 4px;
  background: #39aaf8;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.jobs-modal-confirm:hover {
  background: #249ef3;
}

.test-card {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #ffffff;
  color: #111111;
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  padding: 34px 36px 28px;
}

.is-hidden {
  display: none !important;
}

.test-card-header {
  display: flex;
  justify-content: flex-start;
}

.test-card-header h2 {
  margin: 0;
  font-size: 2rem;
}

.test-card-header p {
  margin: 8px 0 0;
  color: #7a7a7a;
  font-size: 1.05rem;
}

.test-divider {
  height: 1px;
  margin: 26px 0 20px;
  background: rgba(0, 0, 0, 0.12);
}

.test-card-body {
  font-size: 1.25rem;
  color: #1a1a1a;
}

.test-card-body p {
  margin: 0 0 22px;
}

.test-access-note {
  margin: 18px 0 0;
  color: #b42318;
  font-size: 1rem;
  font-weight: 700;
}

.test-start-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 4px;
  background: #38a2ea;
  color: #ffffff;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.test-start-btn.disabled {
  background: #9aa7b8;
  pointer-events: none;
}

.exam-card {
  width: min(1000px, 100%);
  margin: 0 auto;
  background: #ffffff;
  color: #111111;
  border-radius: 14px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  padding: 28px 36px 34px;
}

.exam-card-header {
  text-align: center;
}

.exam-card-header h2 {
  margin: 0;
  color: #2d2d2d;
  font-size: 2.1rem;
  font-weight: 500;
}

.exam-card-header p {
  margin: 10px 0 18px;
  color: #5b5b5b;
  font-size: 1.2rem;
}

.question-index {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0c0c0c;
  color: #ffffff;
  font-weight: 700;
}

.question-panel {
  margin-top: 34px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 28px 24px;
}

.question-panel h3 {
  margin: 0 0 18px;
  text-align: right;
  font-size: 1.55rem;
}

.choice-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1.15rem;
  cursor: pointer;
}

.choice-row input {
  width: 22px;
  height: 22px;
  accent-color: #1f8ddd;
}

.exam-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}

.confirm-btn {
  border: 0;
  border-radius: 8px;
  background: #0b0b0b;
  color: #ffffff;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
}

.result-modal {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  padding: 38px 24px 26px;
  text-align: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 4px solid #dff0d8;
  color: #8acb73;
  font-size: 3rem;
  font-weight: 700;
}

.result-icon.failure {
  border-color: #f2c7c7;
  color: #e24d4d;
}

.result-modal h2 {
  margin: 0 0 10px;
  color: #444444;
  font-size: 2.2rem;
}

.result-modal p {
  margin: 0 0 28px;
  color: #555555;
  font-size: 1.25rem;
  line-height: 1.7;
}

.modal-close-btn {
  min-width: 116px;
  border: 2px solid #d7ecff;
  border-radius: 8px;
  background: #ff1717;
  color: #ffffff;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.confirm-backdrop {
  z-index: 80;
}

.confirm-modal {
  max-width: 560px;
}

.confirm-icon {
  border-color: #ffe1e1;
  color: #ff4b4b;
}

.confirm-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.confirm-action-btn {
  background: #ff1717;
}

.confirm-cancel-btn {
  min-width: 116px;
  border: 2px solid #dff0d8;
  border-radius: 8px;
  background: #ffffff;
  color: #4d4d4d;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-hero {
  min-height: 44vh;
  padding-bottom: 170px;
}

.admin-section {
  width: min(1280px, calc(100% - 32px));
  margin: -80px auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

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

.admin-panel {
  background: rgba(255, 255, 255, 0.98);
  color: #1b1b1b;
  border-radius: 16px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.16);
  padding: 24px 20px;
}

.admin-panel h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.admin-panel label {
  display: block;
  margin-bottom: 14px;
  color: #2d2d2d;
  font-weight: 700;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: #1b1b1b;
  background: #fafafa;
}

.admin-panel textarea {
  min-height: 128px;
  resize: vertical;
}

.admin-actions {
  width: min(480px, 100%);
  margin: 22px auto 0;
  text-align: center;
}

.admin-actions p {
  margin: 12px 0 0;
  color: #ffffff;
  font-weight: 700;
}

.admin-body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(98, 183, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(163, 216, 255, 0.22), transparent 20%),
    linear-gradient(180deg, #f9fcff 0%, #edf6ff 54%, #e7f1ff 100%);
  color: #17304d;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.95));
  border-left: 1px solid rgba(72, 148, 255, 0.12);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 32px rgba(61, 127, 201, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px 20px;
}

.admin-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(86, 170, 255, 0.24);
}

.admin-brand strong {
  display: block;
  font-size: 1.15rem;
}

.admin-brand span {
  color: rgba(23, 48, 77, 0.58);
  font-size: 0.95rem;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-menu-group {
  display: grid;
  gap: 8px;
}

.admin-menu-item {
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(23, 48, 77, 0.82);
  background: rgba(89, 177, 255, 0.06);
  border: 1px solid rgba(89, 177, 255, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  transform: translateX(-2px);
  color: #124a8a;
  background: linear-gradient(135deg, rgba(112, 191, 255, 0.24), rgba(196, 232, 255, 0.78));
  border-color: rgba(98, 162, 255, 0.26);
}

.admin-submenu {
  display: grid;
  gap: 6px;
  padding: 0 14px 4px 0;
}

.admin-submenu a {
  position: relative;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(23, 48, 77, 0.7);
  background: rgba(89, 177, 255, 0.05);
  border: 1px solid rgba(89, 177, 255, 0.08);
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.admin-submenu a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(62, 143, 216, 0.34);
  transform: translateY(-50%);
}

.admin-submenu a.active {
  color: #124a8a;
  background: rgba(112, 191, 255, 0.22);
  border-color: rgba(98, 162, 255, 0.24);
}

.admin-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.admin-ghost-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(89, 177, 255, 0.08);
  color: rgba(23, 48, 77, 0.72);
}

.admin-main {
  padding: 34px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-topbar p {
  margin: 0 0 8px;
  color: #3e8fd8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.admin-topbar h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7ec7ff, #d3efff);
  color: #0d4174;
  font-weight: 800;
}

.admin-pill-danger {
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #ff9b9b, #ffd8d8);
  color: #8f1818;
}

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

.admin-dashboard-card,
.admin-editor-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.98));
  border: 1px solid rgba(124, 172, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(61, 127, 201, 0.12);
}

.admin-dashboard-card {
  padding: 24px;
}

.admin-applicants-list {
  display: grid;
  gap: 22px;
}

.admin-applicant-group {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(124, 172, 255, 0.14);
  box-shadow: 0 14px 34px rgba(61, 127, 201, 0.08);
}

.admin-applicant-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-applicant-group-head p {
  margin: 0 0 6px;
  color: #3e8fd8;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-applicant-group-head h2 {
  margin: 0;
  color: #17304d;
  font-size: 1.4rem;
}

.admin-applicant-group-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7ec7ff, #d3efff);
  color: #0d4174;
  font-weight: 800;
}

.admin-applicant-cards {
  display: grid;
  gap: 14px;
}

.admin-applicant-card {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(124, 172, 255, 0.16);
  box-shadow: 0 10px 24px rgba(61, 127, 201, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.admin-applicant-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(124, 172, 255, 0.16);
}

.admin-applicant-card-head h3 {
  margin: 0;
  color: #17304d;
  font-size: 1.15rem;
}

.admin-applicant-card-head p,
.admin-applicant-card-head span {
  margin: 4px 0 0;
  color: rgba(23, 48, 77, 0.62);
  font-size: 0.92rem;
}

.admin-answer-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-answer-list div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(238, 247, 255, 0.72);
  border: 1px solid rgba(124, 172, 255, 0.12);
}

.admin-answer-list dt {
  color: #124a8a;
  font-weight: 800;
}

.admin-answer-list dd {
  margin: 0;
  color: #24384f;
  line-height: 1.7;
  white-space: pre-wrap;
}

.admin-card-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: #4b9ae1;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-dashboard-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.admin-dashboard-card p {
  margin: 0;
  color: rgba(23, 48, 77, 0.7);
  line-height: 1.85;
}

.admin-editor {
  display: grid;
  gap: 22px;
}

.admin-editor-panel {
  padding: 24px;
}

.admin-editor-panel-wide {
  min-height: 520px;
}

.admin-editor-panel h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  color: #133f70;
}

.admin-editor-panel label {
  display: block;
  margin-bottom: 14px;
  color: #1e446d;
  font-weight: 700;
}

.admin-editor-panel input,
.admin-editor-panel select,
.admin-editor-panel textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(126, 180, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: #17304d;
  background: rgba(219, 239, 255, 0.26);
}

.admin-editor-panel textarea {
  min-height: 170px;
  resize: vertical;
}

.admin-checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.admin-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #3f9cff;
}

.admin-checkbox-row span {
  color: #1e446d;
  font-weight: 700;
}

.admin-select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(126, 180, 255, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: #17304d;
  background: rgba(219, 239, 255, 0.26);
}

.admin-hint {
  margin: 6px 0 0;
  color: rgba(23, 48, 77, 0.55);
  font-size: 0.92rem;
}

.admin-repeat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 12px;
}

.admin-repeat-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-mini-btn,
.admin-delete-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-mini-btn {
  background: rgba(82, 168, 255, 0.16);
  color: #15528f;
}

.admin-delete-btn {
  background: rgba(200, 229, 255, 0.55);
  color: #153b63;
}

.admin-delete-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-editor-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-heading h2 {
  margin: 0 0 6px;
}

.admin-section-heading p {
  margin: 0;
  color: rgba(23, 48, 77, 0.62);
  line-height: 1.8;
}

.admin-meta-panel {
  display: grid;
  gap: 18px;
}

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

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

.admin-law-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(107, 173, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4faff);
  box-shadow: 0 18px 38px rgba(61, 127, 201, 0.1);
}

.admin-law-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-law-card h3 {
  margin: 0;
  color: #123d6b;
  font-size: 1.5rem;
}

.admin-law-card p {
  margin: 0;
  color: rgba(23, 48, 77, 0.74);
  line-height: 1.8;
}

.admin-law-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(106, 195, 255, 0.16);
  color: #15528f;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-law-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(23, 48, 77, 0.56);
  font-size: 0.9rem;
}

.admin-law-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.admin-card-btn,
.admin-add-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-card-btn {
  flex: 1;
  background: rgba(82, 168, 255, 0.14);
  color: #0f4e8c;
}

.admin-card-btn.danger {
  background: rgba(255, 108, 108, 0.14);
  color: #aa2d2d;
}

.admin-add-link {
  background: linear-gradient(135deg, #83ceff, #dff4ff);
  color: #124a85;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-status-pill.success {
  background: rgba(109, 212, 140, 0.18);
  color: #1f7a35;
}

.admin-status-pill.failure {
  background: rgba(255, 108, 108, 0.18);
  color: #aa2d2d;
}

.admin-status-pill.pending {
  background: rgba(255, 190, 92, 0.2);
  color: #915d00;
}

.admin-empty-state {
  padding: 34px 24px;
  border: 1px dashed rgba(107, 173, 255, 0.3);
  border-radius: 22px;
  background: rgba(240, 248, 255, 0.84);
  text-align: center;
}

.admin-empty-state h3,
.admin-empty-state p {
  margin: 0;
}

.admin-empty-state p {
  margin-top: 10px;
  color: rgba(23, 48, 77, 0.62);
}

.admin-image-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.admin-image-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(107, 173, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.admin-image-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.admin-save-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #8ad0ff, #d8f2ff);
  color: #0e4276;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-save-status {
  margin: 0;
  color: #325c88;
  font-weight: 700;
}

.rules-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rules-panels {
  min-width: 0;
}

.rules-sidebar {
  display: grid;
  gap: 12px;
}

#extraRulesPanels {
  display: contents;
}

.rules-tab {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 146px;
  padding: 24px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f1f1f;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: right;
}

.rules-tab.active {
  background: rgba(32, 32, 32, 0.4);
  color: #ffffff;
}

.rules-card {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  color: #464646;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
  padding: 26px 30px 34px;
}

.rules-card.active {
  display: block;
}

.rules-card h2 {
  margin: 0 0 18px;
  color: #333333;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 500;
}

.rules-intro {
  margin: 0 0 18px;
  color: #6f6f6f;
  font-size: 1.12rem;
}

.rules-block + .rules-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(0, 0, 0, 0.12);
}

.rules-block h3 {
  margin: 0 0 12px;
  color: #5a5a5a;
  font-size: 1.45rem;
}

.rules-block ol,
.rules-block ul {
  margin: 0;
  padding-right: 22px;
  color: #666666;
  line-height: 1.9;
  font-size: 1.05rem;
}

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

.product-card {
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.product-thumb {
  position: relative;
  height: 250px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18px;
  color: #ff3f3f;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #0f0f14, #060608);
}

.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb::after {
  content: "";
  position: absolute;
  inset: auto 24px 18px;
  height: 150px;
  border-radius: 12px;
}

.thumb-shop::after {
  background:
    linear-gradient(180deg, transparent 0 14%, #6b0f14 14% 73%, #2a1010 73%),
    linear-gradient(90deg, transparent 0 29%, #d9d9d9 29% 31%, transparent 31% 69%, #d9d9d9 69% 71%, transparent 71%);
  box-shadow: inset 0 -24px 0 #8d1c1c;
}

.thumb-car::after {
  background:
    radial-gradient(circle at 55% 55%, rgba(96, 164, 255, 0.95), transparent 36%),
    linear-gradient(145deg, #606f85 18%, #161b22 48%, #0d0d10 70%);
  clip-path: polygon(12% 70%, 22% 52%, 44% 42%, 73% 44%, 87% 57%, 80% 70%, 18% 74%);
}

.thumb-wheel {
  color: #ffffff;
  background: #ffffff;
}

.thumb-wheel::after {
  inset: 20px auto auto 50%;
  width: 220px;
  height: 220px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(#ff4040 0 40deg, #2ad66b 40deg 80deg, #3951ff 80deg 120deg, #ffca2d 120deg 160deg, #8b39cc 160deg 200deg, #45d5ff 200deg 240deg, #ff4040 240deg 280deg, #2ad66b 280deg 320deg, #3951ff 320deg 360deg);
  border: 6px solid #2d2d39;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.thumb-wheel span {
  position: absolute;
  bottom: 20px;
  color: #121212;
  font-size: 1rem;
}

.product-thumb:has(img)::after,
.product-thumb:has(img) span {
  display: none;
}

.thumb-badge::after {
  inset: auto 50% 28px auto;
  width: 190px;
  height: 190px;
  transform: translateX(50%);
  border-radius: 28% 28% 42% 42%;
  background: radial-gradient(circle at 30% 30%, #6fd0ff, #1195f0 62%, #0d5cb1 100%);
  clip-path: polygon(50% 0%, 61% 9%, 75% 7%, 84% 20%, 96% 25%, 93% 40%, 100% 50%, 93% 60%, 96% 75%, 84% 80%, 75% 93%, 61% 91%, 50% 100%, 39% 91%, 25% 93%, 16% 80%, 4% 75%, 7% 60%, 0% 50%, 7% 40%, 4% 25%, 16% 20%, 25% 7%, 39% 9%);
}

.thumb-dealer::after {
  background:
    linear-gradient(180deg, #69c4ff 0 38%, #355b2b 38% 54%, #c6ad72 54% 58%, #796139 58%),
    linear-gradient(90deg, transparent 10%, #36485f 10% 24%, transparent 24% 36%, #36485f 36% 52%, transparent 52% 64%, #36485f 64% 80%, transparent 80%);
}

.thumb-city::after {
  background:
    linear-gradient(180deg, #7fd4ff 0 45%, #3d74a5 45% 58%, #24425f 58%),
    linear-gradient(90deg, transparent 0 22%, #d8e2ef 22% 34%, transparent 34% 46%, #d8e2ef 46% 58%, transparent 58% 70%, #d8e2ef 70% 82%, transparent 82%);
}

.product-info {
  padding: 16px 20px 20px;
  color: #121212;
}

.product-info h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-meta strong {
  color: #62b300;
  font-size: 1.15rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price s {
  color: #ff6f6f;
}

.cart-btn {
  padding: 10px 16px;
  border: 1px solid #20314f;
  border-radius: 6px;
  background: #ffffff;
  color: #1b1b1b;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.cart-btn.is-added {
  background: #33b25d;
  color: #ffffff;
  border-color: #33b25d;
}

.floating-cart {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #33b25d;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.cart-icon {
  font-size: 1.3rem;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d9b4d;
  font-size: 0.82rem;
}

.cart-section {
  width: min(1180px, calc(100% - 32px));
  margin: -92px auto 0;
  position: relative;
  z-index: 2;
  padding-bottom: 70px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 18px;
}

.cart-item,
.cart-summary,
.cart-empty-state {
  background: #ffffff;
  color: #121212;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.cart-item-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 90px;
  overflow: hidden;
  border-radius: 8px;
  background: #0f0f14;
  color: #ff3f3f;
  font-weight: 800;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.cart-item-info p {
  margin: 0;
  color: #62b300;
  font-weight: 800;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #edf3ff;
}

.cart-qty-controls button,
.cart-remove-btn {
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cart-qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2764ea;
  color: #ffffff;
}

.cart-remove-btn {
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffe5e5;
  color: #c92a2a;
}

.cart-summary {
  padding: 22px;
  position: sticky;
  top: 22px;
}

.cart-summary h2 {
  margin: 0 0 18px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.cart-checkout-btn,
.cart-continue-link {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 800;
}

.cart-checkout-btn {
  background: #33b25d;
  color: #ffffff;
  cursor: pointer;
}

.cart-continue-link {
  background: #edf3ff;
  color: #173b9b;
}

.cart-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 20px;
  text-align: center;
}

.site-footer-panel {
  margin-top: 96px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: #f7f7f7;
  padding: 40px 16px 34px;
}

.footer-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.footer-column {
  color: #2a2a2a;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: #1d1d1d;
  font-size: 1.85rem;
}

.footer-column p {
  margin: 0;
  color: #505050;
  line-height: 1.9;
}

.footer-column a {
  display: block;
  width: fit-content;
  color: #3a3a3a;
  margin-bottom: 10px;
}

.footer-contact {
  justify-self: center;
  text-align: center;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
}

.discord-badge svg {
  width: 34px;
  height: 34px;
  fill: #5865f2;
}

.footer {
  padding: 22px 16px 38px;
  text-align: center;
  color: #3f3f3f;
  background: #f5f8ff;
}

@keyframes brandFloatPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 28px rgba(71, 141, 255, 0.35);
  }
  50% {
    transform: translateY(-8px) scale(1.025);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.12), 0 18px 38px rgba(0, 0, 0, 0.32), 0 0 42px rgba(143, 193, 255, 0.52);
  }
}

@keyframes badgeShine {
  0% {
    transform: translateX(145%) skewX(-18deg);
  }
  42%,
  100% {
    transform: translateX(-185%) skewX(-18deg);
  }
}

@keyframes modalBackdropIn {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.62);
  }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultIconPop {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }
  70% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes resultIconRing {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 203, 115, 0.28);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(138, 203, 115, 0);
  }
}

.login-btn,
.primary-btn,
.secondary-btn,
.test-start-btn,
.job-card,
.job-badge.open {
  will-change: transform, box-shadow;
}

.login-btn,
.primary-btn,
.secondary-btn,
.test-start-btn {
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.nav a {
  padding-bottom: 8px;
}

.nav a::after {
  right: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #dff1ff, #8fc1ff, transparent);
  box-shadow: 0 0 12px rgba(143, 193, 255, 0.85);
  transform: translateX(50%);
  transition: width 230ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-mark {
  animation: brandFloatPulse 3.2s ease-in-out infinite;
}

.job-card {
  transition:
    transform 230ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 230ms ease,
    border-color 230ms ease;
}

.job-badge.open {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.job-badge.open::after {
  content: "";
  position: absolute;
  inset: -45% -35%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  animation: badgeShine 2.6s ease-in-out infinite;
}

.jobs-modal-backdrop:not(.is-hidden),
.modal-backdrop:not(.is-hidden) {
  animation: modalBackdropIn 220ms ease both;
}

.jobs-modal-backdrop:not(.is-hidden) .jobs-modal,
.modal-backdrop:not(.is-hidden) .result-modal {
  animation: modalPopIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.jobs-modal-body:not(.is-hidden),
.jobs-modal-form:not(.is-hidden) {
  animation: modalContentIn 220ms ease both;
}

.jobs-modal {
  transform-origin: top center;
}

.jobs-modal-copy p {
  transition: color 200ms ease, transform 200ms ease;
}

.jobs-form-field {
  transition: transform 200ms ease;
}

.jobs-form-field input,
.jobs-form-field select {
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease,
    background-color 200ms ease;
}

.jobs-form-field input:focus,
.jobs-form-field select:focus {
  transform: translateY(-1px);
  background: #fbfdff;
}

.jobs-modal-confirm,
.modal-close-btn,
.confirm-btn,
.confirm-cancel-btn {
  transition:
    transform 210ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 210ms ease,
    background-color 210ms ease,
    border-color 210ms ease;
}

.result-icon {
  animation: resultIconPop 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both, resultIconRing 900ms ease 220ms 1;
}

.result-icon.failure {
  animation: resultIconPop 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after {
    width: 100%;
  }

  .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 22px rgba(143, 193, 255, 0.7), 0 0 42px rgba(37, 158, 243, 0.34);
  }

  .login-btn:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 14px rgba(143, 193, 255, 0.46);
  }

  .primary-btn:hover {
    background: #37a8ff;
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(17, 108, 220, 0.36), 0 0 24px rgba(143, 193, 255, 0.55);
  }

  .secondary-btn:hover {
    background: #37a8ff;
    border-color: #9ed6ff;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(17, 108, 220, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .job-card-open:hover {
    transform: translateY(-7px);
    border-color: rgba(55, 168, 255, 0.35);
    box-shadow: 0 18px 36px rgba(19, 38, 71, 0.22), 0 0 24px rgba(143, 193, 255, 0.2);
  }

  .job-card-closed:hover {
    transform: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    border-color: rgba(17, 17, 17, 0.08);
  }

  .job-badge.open:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(55, 168, 255, 0.36), 0 0 18px rgba(143, 193, 255, 0.48);
  }

  .test-start-btn:not(.disabled):hover {
    transform: scale(1.02);
    background: #5865f2;
    box-shadow: 0 18px 42px rgba(88, 101, 242, 0.42), 0 0 30px rgba(143, 193, 255, 0.56);
  }

  .test-start-btn:not(.disabled):active {
    transform: scale(0.99);
  }

  .jobs-modal-copy p:hover {
    color: #1d4f8f;
    transform: translateX(-3px);
  }

  .jobs-form-field:focus-within {
    transform: translateY(-2px);
  }

  .jobs-modal-confirm:hover {
    transform: translateY(-2px);
    background: #1f9af0;
    box-shadow: 0 12px 24px rgba(37, 158, 243, 0.32), 0 0 18px rgba(143, 193, 255, 0.48);
  }

  .jobs-modal-confirm:active,
  .modal-close-btn:active,
  .confirm-btn:active,
  .confirm-cancel-btn:active {
    transform: translateY(1px) scale(0.985);
  }

  .modal-close-btn:hover,
  .confirm-action-btn:hover {
    background: #e91414;
    box-shadow: 0 12px 26px rgba(255, 23, 23, 0.3), 0 0 0 4px rgba(215, 236, 255, 0.55);
  }

  .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26), 0 0 18px rgba(143, 193, 255, 0.35);
  }

  .confirm-cancel-btn:hover {
    transform: translateY(-2px);
    border-color: #9ed6ff;
    box-shadow: 0 10px 22px rgba(37, 158, 243, 0.18);
  }

  .cart-btn:hover,
  .floating-cart:hover,
  .cart-checkout-btn:hover,
  .cart-continue-link:hover,
  .cart-remove-btn:hover,
  .cart-qty-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(39, 100, 234, 0.22);
  }

  .admin-submenu a:hover {
    transform: translateX(-2px);
    color: #124a8a;
    background: rgba(112, 191, 255, 0.2);
    border-color: rgba(98, 162, 255, 0.24);
  }

  .admin-applicant-card:hover {
    transform: translateY(-3px);
    border-color: rgba(98, 162, 255, 0.3);
    box-shadow: 0 16px 34px rgba(61, 127, 201, 0.14);
  }
}

@media (hover: none), (pointer: coarse) {
  .nav a::after,
  .job-badge.open::after {
    display: none;
  }

  .login-btn:hover,
  .primary-btn:hover,
  .secondary-btn:hover,
  .test-start-btn:hover,
  .job-card-open:hover,
  .job-badge.open:hover,
  .jobs-modal-confirm:hover,
  .modal-close-btn:hover,
  .confirm-btn:hover,
  .confirm-cancel-btn:hover,
  .admin-submenu a:hover,
  .admin-applicant-card:hover,
  .cart-btn:hover,
  .floating-cart:hover,
  .cart-checkout-btn:hover,
  .cart-continue-link:hover,
  .cart-remove-btn:hover,
  .cart-qty-controls button:hover {
    transform: none;
    box-shadow: inherit;
  }

  .jobs-modal-confirm:hover {
    background: #39aaf8;
  }

  .jobs-modal-copy p:hover {
    color: inherit;
    transform: none;
  }

  .brand-mark {
    animation-duration: 4s;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hud,
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-btn {
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column a {
    margin-right: auto;
    margin-left: auto;
  }

  .footer-contact {
    justify-self: auto;
  }

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

  .rules-layout {
    grid-template-columns: 1fr;
  }

  .rules-sidebar {
    grid-template-columns: 1fr 1fr;
  }

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-laws-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-image-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .jobs-grid-narrow {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: min(100% - 24px, 1120px);
    gap: 14px;
  }

  .hero {
    padding-top: 10px;
    padding-bottom: 120px;
  }

  .store-hero {
    min-height: auto;
    padding-bottom: 170px;
  }

  .rules-hero {
    min-height: auto;
    padding-bottom: 160px;
  }

  .brand-mark {
    width: 126px;
    height: 126px;
    font-size: 2.35rem;
  }

  .nav {
    gap: 14px;
    font-size: 0.95rem;
  }

  .stream-card {
    padding: 22px 18px;
  }

  .stream-player-nav {
    gap: 10px;
  }

  .stream-arrow-btn {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .store-copy {
    font-size: 1.05rem;
  }

  .store-filters {
    gap: 10px;
    margin-top: 28px;
  }

  .filter-pill {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .store-section {
    margin-top: -90px;
  }

  .rules-section {
    margin-top: -90px;
  }

  .admin-hero {
    min-height: auto;
    padding-bottom: 140px;
  }

  .admin-section {
    margin-top: -70px;
  }

  .admin-main {
    padding: 20px 16px 32px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .admin-section-heading,
  .admin-law-actions {
    flex-direction: column;
  }

  .admin-laws-grid {
    grid-template-columns: 1fr;
  }

  .admin-image-list {
    grid-template-columns: 1fr;
  }

  .test-card {
    padding: 24px 18px 22px;
  }

  .exam-card {
    padding: 22px 18px 26px;
  }

  .test-hero {
    min-height: auto;
    padding-bottom: 140px;
  }

  .jobs-hero {
    min-height: auto;
    padding-bottom: 135px;
  }

  .jobs-section {
    margin-top: -70px;
  }

  .jobs-grid,
  .jobs-grid-narrow {
    grid-template-columns: 1fr;
  }

  .jobs-category-head {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .job-card h3 {
    font-size: 1.7rem;
  }

  .test-card-header h2 {
    font-size: 1.55rem;
  }

  .test-card-body {
    font-size: 1.05rem;
  }

  .exam-card-header h2 {
    font-size: 1.6rem;
  }

  .question-panel {
    padding: 20px 16px;
  }

  .choice-row {
    font-size: 1rem;
  }

  .rules-sidebar {
    grid-template-columns: 1fr;
  }

  .rules-tab {
    min-height: 108px;
    padding: 18px 16px;
  }

  .rules-card {
    padding: 22px 18px 26px;
  }

  .rules-block h3 {
    font-size: 1.2rem;
  }

  .rules-block ol,
  .rules-block ul {
    font-size: 0.98rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .cart-qty-controls,
  .cart-remove-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .cart-summary {
    position: static;
  }

  .product-thumb {
    height: 220px;
  }

  .product-meta {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .floating-cart {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .site-footer-panel {
    margin-top: 72px;
    padding: 32px 16px 28px;
  }

  .footer-column h3 {
    font-size: 1.55rem;
  }
}

/* Final dark admin dashboard override */
.admin-body {
  --admin-bg: #171a22;
  --admin-surface: #222731;
  --admin-card: #242933;
  --admin-card-dark: #1d222b;
  --admin-line: rgba(144, 152, 174, 0.18);
  --admin-text: #d8dbe4;
  --admin-muted: #9298a8;
  --admin-purple: #3aa4ff;
  --admin-purple-soft: #78c5ff;
  --admin-red: #ff6464;
  --admin-green: #58c777;
  --admin-yellow: #f4b94f;
  background:
    radial-gradient(circle at 14% 0%, rgba(58, 164, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(58, 164, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #252933 0%, #181b23 38%, #151820 100%) !important;
  color: var(--admin-text) !important;
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.24;
  z-index: 0;
}

.admin-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) 276px !important;
  background: transparent;
}

.admin-sidebar {
  grid-column: 2;
  grid-row: 1;
  background: #222731 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.035) !important;
  box-shadow: -22px 0 56px rgba(0, 0, 0, 0.24) !important;
}

.admin-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 32px 28px 56px !important;
}

.admin-brand {
  min-height: 68px;
  padding: 0 4px 24px !important;
  border-bottom: 1px solid var(--admin-line);
}

.admin-brand img {
  width: 44px !important;
  height: 44px !important;
  border: 2px solid rgba(58, 164, 255, 0.34);
  border-radius: 16px !important;
  box-shadow: 0 0 24px rgba(58, 164, 255, 0.22) !important;
}

.admin-brand strong,
.admin-topbar h1,
.admin-dashboard-card h2,
.admin-editor-panel h2,
.admin-section-heading h2,
.admin-law-card h3,
.admin-applicant-group-head h2,
.admin-applicant-card-head h3,
.admin-empty-state h3 {
  color: #f0f2f8 !important;
}

.admin-brand span,
.admin-dashboard-card p,
.admin-section-heading p,
.admin-law-card p,
.admin-law-meta,
.admin-hint,
.admin-save-status,
.admin-empty-state p,
.admin-applicant-card-head p,
.admin-applicant-card-head span,
.admin-card-kicker {
  color: var(--admin-muted) !important;
}

.admin-menu {
  gap: 4px !important;
  padding-top: 22px;
}

.admin-menu-item {
  min-height: 44px;
  padding: 11px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #c4c7d2 !important;
}

.admin-menu-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 11px;
  border-radius: 50%;
  background: rgba(148, 153, 168, 0.56);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  color: #ffffff !important;
  background: rgba(58, 164, 255, 0.12) !important;
  border-color: rgba(58, 164, 255, 0.24) !important;
}

.admin-menu-item:hover::before,
.admin-menu-item.active::before {
  background: var(--admin-purple);
  box-shadow: 0 0 16px rgba(58, 164, 255, 0.72);
}

.admin-submenu {
  padding: 2px 26px 8px 0 !important;
}

.admin-submenu a {
  border-color: transparent !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: #8f94a4 !important;
}

.admin-submenu a.active,
.admin-submenu a:hover {
  color: #ffffff !important;
  background: rgba(58, 164, 255, 0.16) !important;
  border-color: rgba(58, 164, 255, 0.28) !important;
}

.admin-sidebar-footer {
  border-top: 1px solid var(--admin-line);
  padding-top: 20px;
}

.admin-topbar {
  min-height: 108px;
  align-items: center !important;
  margin: -32px -28px 28px !important;
  padding: 24px 28px !important;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(35, 39, 49, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.admin-topbar p {
  color: var(--admin-purple-soft) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 800;
}

.admin-topbar h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
}

.admin-dashboard-card,
.admin-editor-panel,
.admin-applicant-group,
.admin-law-card,
.admin-empty-state,
.admin-image-item,
.admin-panel {
  background: linear-gradient(180deg, rgba(38, 43, 54, 0.98), rgba(30, 34, 43, 0.98)) !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 45px rgba(0, 0, 0, 0.18) !important;
  color: var(--admin-text) !important;
}

.admin-editor-panel label,
.admin-checkbox-row span,
.admin-answer-list dt,
.admin-panel label {
  color: #cfd3df !important;
}

.admin-editor-panel input,
.admin-editor-panel select,
.admin-editor-panel textarea,
.admin-select,
.admin-panel input,
.admin-panel textarea {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  background: #1a1e27 !important;
  color: #f0f2f8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-editor-panel input:focus,
.admin-editor-panel select:focus,
.admin-editor-panel textarea:focus,
.admin-select:focus {
  outline: none;
  border-color: rgba(58, 164, 255, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(58, 164, 255, 0.16) !important;
}

.admin-pill,
.admin-add-link,
.admin-save-btn {
  border: 1px solid rgba(58, 164, 255, 0.55) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #218cff, #55b8ff) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(58, 164, 255, 0.22) !important;
}

.admin-pill-danger {
  border-color: rgba(255, 100, 100, 0.5) !important;
  background: linear-gradient(135deg, #a93645, #ff6464) !important;
}

.admin-mini-btn,
.admin-card-btn,
.admin-ghost-link {
  border: 1px solid rgba(58, 164, 255, 0.28) !important;
  background: rgba(58, 164, 255, 0.12) !important;
  color: #cfe8ff !important;
}

.admin-delete-btn,
.admin-card-btn.danger {
  border: 1px solid rgba(255, 100, 100, 0.22) !important;
  background: rgba(255, 100, 100, 0.1) !important;
  color: #ff9a9a !important;
}

.admin-law-badge,
.admin-applicant-group-head > span,
.admin-status-pill {
  border: 1px solid rgba(58, 164, 255, 0.28) !important;
  background: rgba(58, 164, 255, 0.14) !important;
  color: #d9efff !important;
}

.admin-permissions-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.admin-permissions-checks .admin-checkbox-row {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(58, 164, 255, 0.16);
  border-radius: 10px;
  background: rgba(26, 30, 39, 0.72);
}

.admin-status-pill.success {
  border-color: rgba(88, 199, 119, 0.28) !important;
  background: rgba(88, 199, 119, 0.12) !important;
  color: #8ee1a5 !important;
}

.admin-status-pill.failure {
  border-color: rgba(255, 100, 100, 0.28) !important;
  background: rgba(255, 100, 100, 0.12) !important;
  color: #ff9a9a !important;
}

.admin-status-pill.pending {
  border-color: rgba(244, 185, 79, 0.3) !important;
  background: rgba(244, 185, 79, 0.12) !important;
  color: #ffd27a !important;
}

.admin-applicant-card,
.admin-answer-list div {
  background: #1d222b !important;
  border-color: var(--admin-line) !important;
}

.admin-applicant-job-grid,
.admin-applicant-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-applicant-job-card,
.admin-applicant-person-card,
.admin-applicant-detail-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--admin-line) !important;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(38, 43, 54, 0.98), rgba(30, 34, 43, 0.98)) !important;
  color: var(--admin-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.admin-applicant-job-card {
  min-height: 170px;
  align-content: space-between;
}

.admin-applicant-job-card p,
.admin-applicant-toolbar p {
  margin: 0 0 8px;
  color: var(--admin-muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.admin-applicant-job-card h3,
.admin-applicant-toolbar h2 {
  margin: 0;
  color: #f0f2f8;
}

.admin-applicant-job-card > span,
.admin-applicant-toolbar > span {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(58, 164, 255, 0.28);
  border-radius: 999px;
  background: rgba(58, 164, 255, 0.14);
  color: #d9efff;
  font-weight: 800;
}

.admin-applicant-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(30, 34, 43, 0.78);
}

.admin-applicant-toolbar .admin-card-btn {
  flex: 0 0 auto;
}

.admin-applicant-detail-card {
  gap: 18px;
}

.admin-applicant-card-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-application-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.admin-application-actions .admin-card-btn {
  min-height: 46px;
}

.admin-final-decision-note {
  display: grid;
  place-items: center;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(244, 185, 79, 0.3);
  border-radius: 10px;
  background: rgba(244, 185, 79, 0.1);
  color: #ffd27a;
  font-weight: 800;
  text-align: center;
}

.admin-hidden-field {
  display: none !important;
}

.admin-popup-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-popup-editor-btn {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(38, 43, 54, 0.98), rgba(30, 34, 43, 0.98));
  color: var(--admin-text);
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.admin-popup-editor-btn span {
  color: #f0f2f8;
  font-size: 1.15rem;
  font-weight: 800;
}

.admin-popup-editor-btn strong {
  color: var(--admin-muted);
  font-size: 0.95rem;
}

.admin-popup-editor-backdrop {
  z-index: 1400;
}

.admin-popup-editor-modal {
  display: grid;
  gap: 16px;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 22px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(38, 43, 54, 0.98), rgba(30, 34, 43, 0.98));
  color: var(--admin-text);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  animation: modalPopIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.admin-popup-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-popup-editor-head p {
  margin: 0 0 8px;
  color: var(--admin-muted);
}

.admin-popup-editor-head h2 {
  margin: 0;
  color: #f0f2f8;
}

.admin-popup-editor-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 100, 100, 0.22);
  border-radius: 12px;
  background: rgba(255, 100, 100, 0.1);
  color: #ff9a9a;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-popup-editor-textarea {
  width: 100%;
  min-height: 360px;
  max-height: 56vh;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1a1e27;
  color: #f0f2f8;
  font: inherit;
  line-height: 1.8;
}

.admin-popup-editor-textarea:focus {
  outline: none;
  border-color: rgba(58, 164, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(58, 164, 255, 0.16);
}

.admin-popup-editor-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.admin-answer-list dd {
  color: var(--admin-text) !important;
}

@media (hover: hover) and (pointer: fine) {
  .admin-dashboard-card:hover,
  .admin-law-card:hover,
  .admin-applicant-card:hover,
  .admin-applicant-job-card:hover,
  .admin-applicant-person-card:hover,
  .admin-popup-editor-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(58, 164, 255, 0.32) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 20px 44px rgba(0, 0, 0, 0.24) !important;
  }
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
  }

  .admin-sidebar,
  .admin-main {
    grid-column: 1 !important;
  }

  .admin-sidebar {
    position: relative !important;
    height: auto !important;
    box-shadow: none !important;
  }

  .admin-topbar {
    margin: 0 0 24px !important;
    border-radius: 0 0 16px 16px;
  }

  .admin-applicant-job-grid,
  .admin-applicant-cards-grid {
    grid-template-columns: 1fr;
  }

  .admin-applicant-toolbar {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .admin-application-actions {
    grid-template-columns: 1fr;
  }

  .admin-applicant-card-head,
  .admin-applicant-card-side {
    align-items: stretch;
    justify-items: start;
  }

  .admin-popup-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-popup-editor-actions {
    flex-direction: column;
  }
}

@media (min-width: 981px) {
  .admin-shell {
    display: block !important;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 276px !important;
  }

  .admin-main {
    margin-right: 276px !important;
  }
}

