:root {
  --bg: #030608;
  --panel: rgba(7, 13, 17, 0.86);
  --panel-solid: #071015;
  --line: rgba(157, 255, 0, 0.33);
  --line-soft: rgba(160, 185, 195, 0.17);
  --text: #f1f4ef;
  --muted: #8b9496;
  --dim: #596469;
  --accent: #a8ff00;
  --accent-2: #00e5ff;
  --warn: #ff7a00;
  --danger: #ff355d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
  --sidebar-w: 224px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 10%, rgba(0, 229, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 20% 90%, rgba(168, 255, 0, 0.1), transparent 28rem),
    linear-gradient(135deg, #010203, #061014 48%, #020304);
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(168, 255, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 72%);
}

.scanline {
  position: absolute;
  inset: -35% 0 auto;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(168, 255, 0, 0.08), transparent);
  animation: scan 9s linear infinite;
}

.grid-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(168, 255, 0, 0.1);
  filter: blur(2px);
  opacity: 0.42;
}

.grid-glow-a {
  top: 5%;
  right: 7%;
}

.grid-glow-b {
  left: 8%;
  bottom: 3%;
  border-color: rgba(0, 229, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 80;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(7, 13, 17, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.mobile-backdrop {
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-open .mobile-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  z-index: 70;
  top: 12px;
  bottom: 12px;
  left: 12px;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: linear-gradient(180deg, rgba(8, 15, 19, 0.96), rgba(4, 8, 10, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.sidebar::before,
.hero-frame::before,
.hud-panel::before,
.category-card::before,
.auth-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--accent) 0 24px, transparent 24px) left top / 70px 1px no-repeat,
    linear-gradient(var(--accent) 0 24px, transparent 24px) left top / 1px 70px no-repeat,
    linear-gradient(270deg, var(--accent) 0 24px, transparent 24px) right bottom / 70px 1px no-repeat,
    linear-gradient(0deg, var(--accent) 0 24px, transparent 24px) right bottom / 1px 70px no-repeat;
  opacity: 0.58;
}

.brand-panel {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(168, 255, 0, 0.42);
  background:
    linear-gradient(rgba(168, 255, 0, 0.04), rgba(168, 255, 0, 0)),
    rgba(0, 0, 0, 0.15);
}

.brand {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.brand-mark {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 18px solid var(--accent);
  box-shadow: 0 0 32px rgba(168, 255, 0, 0.35);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 16px;
  height: 38px;
  transform: translateX(-50%);
  background: var(--panel-solid);
}

.brand-word {
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
}

.brand-word b,
.title-block span,
.hero-copy span,
.contract-row b,
.runner-card span {
  color: var(--accent);
}

.nav-list {
  display: grid;
  gap: 4px;
  padding: 0 0 16px;
}

.nav-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  color: #c8d0d2;
  border: 1px solid transparent;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link svg,
.sidebar-sign svg,
.icon-button svg,
.auth-chip svg,
.panel-head svg,
.card-icon svg,
.quick-grid svg,
.feed-list svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-color: rgba(168, 255, 0, 0.32);
  background: rgba(168, 255, 0, 0.08);
}

.sidebar-sign {
  min-height: 48px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--text);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 200, 210, 0.22);
  border-radius: var(--radius);
}

.sidebar-sign::after {
  content: "";
  margin-left: auto;
  width: 26px;
  height: 26px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.dashboard {
  min-height: 100vh;
  padding: 18px 22px 20px calc(var(--sidebar-w) + 38px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 520px) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.title-block {
  min-width: 0;
}

.sysline,
.subtitle,
.eyebrow,
.panel-head span {
  margin: 0;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.sysline {
  font-size: 11px;
  line-height: 1.4;
}

.sysline span {
  display: block;
  color: var(--dim);
  font-size: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.title-block h1 {
  margin: 4px 0 4px;
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: 3px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.subtitle {
  font-size: 14px;
}

.search-box {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(4, 8, 11, 0.82);
  border: 1px solid rgba(174, 195, 205, 0.2);
  border-radius: var(--radius);
}

.search-box:focus-within {
  border-color: rgba(168, 255, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(168, 255, 0, 0.09);
}

.search-box svg {
  color: #ccd5d7;
}

.search-box input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  text-transform: uppercase;
  font-family: Consolas, "Courier New", monospace;
}

.search-box kbd {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #b6c0c2;
  border: 1px solid rgba(180, 200, 210, 0.24);
  border-radius: 4px;
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.slider-nav,
.modal-close {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8eff0;
  background: rgba(7, 13, 17, 0.86);
  border: 1px solid rgba(174, 195, 205, 0.22);
  border-radius: var(--radius);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover,
.slider-nav:hover,
.modal-close:hover {
  color: var(--accent);
  border-color: var(--line);
  transform: translateY(-1px);
}

.icon-button.accent {
  color: var(--accent);
  border-color: rgba(168, 255, 0, 0.56);
}

.auth-chip {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 18px;
}

.main-stack {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.hero-frame,
.hud-panel,
.category-card,
.auth-dialog {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.hero-frame {
  min-height: 420px;
  overflow: hidden;
}

.hero-swiper,
.hero-slide {
  height: 100%;
}

.hero-swiper {
  min-height: 420px;
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  padding: 44px 72px 54px 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 5, 8, 0.96) 0%, rgba(2, 5, 8, 0.68) 40%, rgba(2, 5, 8, 0.22) 72%),
    var(--hero-image) center right / cover no-repeat;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 22px 22px 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 255, 0, 0.5), transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  color: var(--accent);
  background: rgba(168, 255, 0, 0.07);
  border: 1px solid rgba(168, 255, 0, 0.18);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
}

.hero-copy h2 {
  margin: 18px 0 18px;
  font-size: 46px;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.74);
}

.hero-copy p:not(.eyebrow) {
  max-width: 410px;
  color: #aeb8ba;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  color: #aeb8ba;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.hero-meta i {
  height: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(168, 255, 0, 0.18) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, transparent, rgba(168, 255, 0, 0.5));
}

.slider-nav {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 30px;
  background: rgba(5, 9, 12, 0.7);
}

.slider-prev {
  right: 86px;
}

.swiper-pagination {
  bottom: 18px !important;
  left: 34px !important;
  width: auto !important;
}

.swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.32);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
}

.hero-swiper.fallback .swiper-wrapper {
  height: 100%;
  display: block;
}

.hero-swiper.fallback .swiper-slide {
  display: none;
}

.hero-swiper.fallback .swiper-slide.active {
  display: flex;
  animation: modalIn 0.36s ease both;
}

.hero-swiper.fallback .swiper-pagination {
  display: flex;
  gap: 8px;
}

.hero-swiper.fallback .swiper-pagination-bullet {
  border: 0;
  cursor: pointer;
}

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

.category-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 16px 14px 12px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 255, 0, 0.62);
}

.category-card strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card-icon {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--accent);
}

.category-card strong {
  padding-left: 34px;
}

.category-card img {
  width: calc(100% + 28px);
  max-width: none;
  height: 124px;
  object-fit: cover;
  margin: 0 -14px;
  opacity: 0.86;
  filter: saturate(1.15) contrast(1.1);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b9c2c4;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 0.9fr;
  gap: 12px;
}

.hud-panel {
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #dce4e6;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.panel-head h3 svg {
  color: var(--accent);
}

.link-list,
.feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list a {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #b7c0c2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.link-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 4px;
  background: var(--accent);
}

.link-list a span {
  flex: 1;
}

.link-list a:hover {
  color: var(--accent);
}

.panel-button,
.submit-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: #dbe4e6;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(180, 200, 210, 0.2);
  border-radius: 5px;
  text-transform: uppercase;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.panel-button:hover {
  color: var(--accent);
  border-color: rgba(168, 255, 0, 0.48);
  background: rgba(168, 255, 0, 0.06);
}

.contract-list {
  display: grid;
  gap: 7px;
}

.contract-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  color: #c3cbcd;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.contract-row::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.contract-row span {
  margin-left: -10px;
}

.contract-row small {
  color: var(--muted);
  text-transform: uppercase;
}

.contract-row strong {
  color: #b5bec0;
  font-weight: 500;
}

.contract-row b {
  min-width: 84px;
  text-align: right;
  text-transform: uppercase;
  font-size: 12px;
}

.contract-row b.ok {
  color: var(--accent);
}

.contract-row b.warn {
  color: var(--warn);
}

.stat-lines {
  display: grid;
  gap: 11px;
}

.stat-line {
  display: grid;
  grid-template-columns: auto 1fr 84px;
  align-items: center;
  gap: 10px;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.stat-line strong {
  font-size: 23px;
  font-weight: 500;
}

.stat-line span {
  color: var(--muted);
  font-size: 12px;
}

.stat-line i {
  height: 9px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--accent) 0 5px,
      transparent 5px 12px
    );
  opacity: 0.9;
  mask-image: linear-gradient(90deg, black var(--active), rgba(0, 0, 0, 0.22) var(--active));
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.runner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar-ring {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), rgba(168, 255, 0, 0.12), var(--accent));
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: grayscale(0.2) contrast(1.16);
}

.runner-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.runner-card span,
.reputation span {
  display: block;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.reputation {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.reputation div {
  display: flex;
  justify-content: space-between;
  color: #b7c1c3;
}

.reputation strong {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 500;
}

.reputation i {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.reputation i b {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e5ff72);
  animation: meter 2s ease both;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.quick-grid button {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  color: #cdd5d7;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(180, 200, 210, 0.18);
  border-radius: 5px;
  text-transform: uppercase;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.quick-grid button:hover {
  color: var(--accent);
  border-color: rgba(168, 255, 0, 0.45);
}

.feed-list {
  display: grid;
  gap: 12px;
}

.feed-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: #c7d0d2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.feed-list svg {
  color: #cbd3d5;
}

.feed-list time {
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #667175;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--accent);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox figure {
  width: min(920px, 100%);
  margin: 0;
  padding: 14px;
  background: rgba(5, 9, 12, 0.96);
  border: 1px solid rgba(168, 255, 0, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.image-lightbox figcaption {
  margin-top: 10px;
  color: #c8d1d3;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  font-size: 12px;
}

.image-lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-modal.active {
  display: flex;
}

.auth-dialog {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border-color: rgba(168, 255, 0, 0.42);
  border-radius: var(--radius);
  animation: modalIn 0.28s ease both;
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
}

.auth-visual {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(4, 8, 11, 0.18), rgba(4, 8, 11, 0.92)),
    url("../img/hero-01.png") center / cover no-repeat;
}

.auth-visual .brand-mark {
  width: 62px;
  height: 62px;
  border-width: 14px;
}

.auth-visual h2 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.auth-visual p {
  margin: 0;
  color: #b5c0c2;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.55;
}

.mini-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  font-size: 12px;
}

.mini-status i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.auth-forms {
  padding: 56px 38px 38px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    rgba(4, 8, 11, 0.96);
  background-size: 26px 26px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 22px;
  border: 1px solid rgba(180, 200, 210, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

.auth-tabs button {
  min-height: 46px;
  color: #cfd8da;
  background: rgba(255, 255, 255, 0.02);
  border: 0;
  text-transform: uppercase;
  font-weight: 800;
}

.auth-tabs button.active {
  color: var(--bg);
  background: var(--accent);
}

.auth-form {
  display: none;
  gap: 15px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #c7d0d2;
  font-family: Consolas, "Courier New", monospace;
  text-transform: uppercase;
  font-size: 12px;
}

.auth-form input:not([type="checkbox"]) {
  height: 48px;
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(180, 200, 210, 0.19);
  border-radius: 5px;
  padding: 0 14px;
  outline: 0;
}

.auth-form input:focus {
  border-color: rgba(168, 255, 0, 0.62);
  box-shadow: 0 0 0 3px rgba(168, 255, 0, 0.08);
}

.form-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.form-row a {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.check {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
}

.check input {
  accent-color: var(--accent);
}

.submit-button {
  min-height: 50px;
  margin-top: 2px;
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 900;
}

.submit-button:hover {
  background: #d9ff60;
}

@keyframes scan {
  to {
    transform: translateY(330%);
  }
}

@keyframes meter {
  from {
    width: 0;
  }
  to {
    width: 42%;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1280px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .stats-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .search-box {
    max-width: 680px;
  }

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

  .right-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
  }

  .menu-open .sidebar {
    transform: translateX(0);
  }

  .dashboard {
    padding: 78px 14px 18px;
  }

  .title-block h1 {
    font-size: 36px;
  }

  .hero-frame,
  .hero-swiper {
    min-height: 500px;
  }

  .hero-slide {
    align-items: flex-end;
    padding: 34px 20px 72px;
    background:
      linear-gradient(180deg, rgba(2, 5, 8, 0.1) 0%, rgba(2, 5, 8, 0.92) 74%),
      var(--hero-image) center / cover no-repeat;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .slider-nav {
    bottom: 22px;
  }

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

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

  .auth-dialog {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 260px;
    padding: 28px;
  }
}

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

  .top-actions {
    gap: 8px;
  }

  .auth-chip span {
    display: none;
  }

  .title-block h1 {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .icon-button,
  .auth-chip {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .search-box {
    height: 44px;
  }

  .search-box input {
    font-size: 12px;
  }

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

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 13px;
  }

  .hero-meta {
    margin-top: 28px;
  }

  .slider-prev {
    right: 72px;
  }

  .slider-nav {
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .contract-row {
    grid-template-columns: 1fr auto;
  }

  .contract-row::before,
  .contract-row small {
    display: none;
  }

  .contract-row span {
    margin-left: 0;
  }

  .contract-row strong {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
  }

  .auth-modal {
    padding: 10px;
  }

  .auth-forms,
  .auth-visual {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
