:root {
  --ink: #050608;
  --void: #0b0e13;
  --surface: #111722;
  --line: #26303d;
  --paper: #f4f6f8;
  --steel: #a8b0bc;
  --electric: #1769ff;
  --bright: #3c86ff;
  --display: Rajdhani, "Arial Narrow", sans-serif;
  --ui: "Barlow Semi Condensed", Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 15px;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 20;
  top: -80px;
  left: 12px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus {
  top: 12px;
}
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    124deg,
    #050608 0 57%,
    #0c111d 57% 64%,
    #050608 64%
  );
}
.scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    #ffffff03 4px 5px
  );
  opacity: 0.35;
}
.scene-art {
  position: absolute;
  top: -7%;
  right: -10%;
  width: 68%;
  height: 75%;
  background: url("/assets/ephix-wallpaper-web.jpg") center/cover;
  opacity: 0.35;
  clip-path: polygon(29% 0, 100% 0, 100% 100%, 0 100%);
}
.scene-slash {
  position: absolute;
  left: 44%;
  top: -20%;
  height: 150%;
  width: 80px;
  transform: skew(-27deg);
  background: #193b90;
  opacity: 0.15;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: #07090dbf;
  backdrop-filter: blur(12px);
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 1.2rem var(--display);
  letter-spacing: 0.09em;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.brand b {
  color: var(--steel);
  font-weight: 600;
}
.topline,
.ephix-link,
.rail-label,
.rail-bottom,
.eyebrow,
.micro {
  font: 700 0.7rem var(--ui);
  letter-spacing: 0.28em;
}
.topline {
  color: var(--steel);
}
.topline i {
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--electric);
  vertical-align: middle;
  margin: 0 12px;
}
.ephix-link {
  text-decoration: none;
  letter-spacing: 0.13em;
}
.ephix-link:hover {
  color: var(--bright);
}
.layout {
  max-width: 1540px;
  margin: auto;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 245px 1fr;
}
.layout:has(.rail[hidden]) {
  grid-template-columns: 1fr;
}
.rail {
  border-right: 1px solid var(--line);
  padding: 62px 22px 30px;
  min-height: calc(100vh - 82px);
  background: #090c12bb;
}
.rail-label {
  color: var(--bright);
  margin: 0 0 27px 15px;
}
.rail nav {
  display: grid;
  gap: 6px;
}
.rail a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 17px 14px;
  font: 700 0.84rem var(--ui);
  letter-spacing: 0.13em;
  color: var(--steel);
  border-left: 2px solid transparent;
}
.rail a span {
  font: 600 0.65rem var(--ui);
  color: #687384;
}
.rail a:hover,
.rail a[aria-current="page"] {
  background: #151d29;
  color: var(--paper);
  border-color: var(--electric);
}
.rail-bottom {
  margin: 55px 14px;
  color: #8792a1;
  letter-spacing: 0.13em;
  font-size: 0.59rem;
}
.signal {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--bright);
  transform: rotate(45deg);
  margin-right: 8px;
}
main {
  min-width: 0;
  padding: clamp(32px, 5vw, 78px);
  position: relative;
}
.eyebrow {
  color: var(--bright);
  margin: 0 0 16px;
}
.hero-head {
  max-width: 830px;
  margin: 0 0 44px;
}
.hero-head h1,
.auth-head h1 {
  font: 700 clamp(3.6rem, 8vw, 7.8rem) / 0.82 var(--display);
  letter-spacing: -0.045em;
  margin: 0 0 22px;
}
.hero-head h1 em {
  font-style: normal;
  color: var(--bright);
}
.hero-head p,
.auth-head p {
  max-width: 620px;
  font: 400 1rem/1.7 var(--body);
  color: var(--steel);
  margin: 0;
}
.underline {
  height: 3px;
  width: 72px;
  background: var(--electric);
  transform: skewX(-30deg);
  margin: 26px 0;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin: 42px 0 20px;
}
.section-top h2 {
  font: 700 1.35rem var(--display);
  letter-spacing: 0.11em;
  margin: 0;
}
.section-top span {
  color: var(--bright);
  font: 700 0.7rem var(--ui);
  letter-spacing: 0.2em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  position: relative;
  background: linear-gradient(140deg, #131a26, #0c1018);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 25px;
  min-width: 0;
}
.panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--electric);
}
.panel:hover {
  border-color: #3c516f;
}
.panel h3 {
  font: 700 1.5rem var(--display);
  margin: 0 0 7px;
  letter-spacing: 0.04em;
}
.panel p {
  color: var(--steel);
  line-height: 1.55;
  margin: 0;
}
.panel .micro {
  color: var(--bright);
  margin: 0 0 12px;
  font-size: 0.61rem;
}
.panel .detail {
  margin-top: 20px;
  color: #8895a5;
  font: 600 0.7rem var(--ui);
  letter-spacing: 0.15em;
}
.panel.wide {
  grid-column: 1/-1;
}
.identity-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 170px;
}
.identity-card strong {
  font: 700 clamp(1.8rem, 4vw, 3.4rem) / 1 var(--display);
  overflow-wrap: anywhere;
}
.identity-card .id-mark {
  color: var(--electric);
  font: 700 5rem/0.7 var(--display);
  opacity: 0.25;
}
.button,
.primary,
.quiet {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  font: 700 0.77rem var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.button:hover,
.primary:hover,
.quiet:hover {
  transform: translateY(-2px);
}
.primary,
.button {
  background: var(--electric);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.primary:hover,
.button:hover {
  background: var(--bright);
}
.quiet {
  background: #1b2532;
  color: var(--paper);
  border: 1px solid #334054;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.auth-shell {
  max-width: 1180px;
  margin: auto;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 1fr minmax(310px, 440px);
  align-items: center;
  gap: 8vw;
}
.auth-head {
  max-width: 620px;
}
.auth-head img {
  display: block;
  width: min(100%, 450px);
  max-height: 250px;
  object-fit: contain;
  object-position: left;
  margin: 0 0 25px;
}
.auth-head h1 {
  font-size: clamp(3.6rem, 6vw, 6.5rem);
}
.auth-panel {
  padding: 36px;
  background: #0c111bcf;
  border: 1px solid #303d50;
  box-shadow: 0 28px 70px #0008;
  position: relative;
}
.auth-panel:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 65px;
  height: 4px;
  background: var(--electric);
}
.auth-panel h2 {
  font: 700 2rem var(--display);
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.auth-panel p {
  color: var(--steel);
  line-height: 1.5;
  margin: 0 0 22px;
}
.form {
  display: grid;
  gap: 16px;
}
.form label,
.interaction label {
  display: grid;
  gap: 8px;
  font: 700 0.75rem var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form input,
.interaction input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--paper);
  background: #070a10;
  border: 1px solid #3a4657;
  border-radius: 0;
}
.form input::placeholder {
  color: #667285;
}
.form button {
  margin-top: 5px;
}
.form-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--steel);
  font: 600 0.8rem var(--ui);
}
.form-links a:hover {
  color: var(--bright);
}
.status {
  padding: 15px 17px;
  border-left: 3px solid var(--electric);
  background: #17243b;
  color: var(--paper);
  margin: 16px 0;
}
.status.error {
  border-color: #f36c72;
  background: #321c26;
}
.list {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  background: #0f151e;
}
.row strong {
  font: 700 1.15rem var(--display);
}
.row small {
  display: block;
  color: var(--steel);
  margin-top: 3px;
}
.row button {
  flex: none;
}
.empty {
  border: 1px dashed #39475b;
  padding: 30px;
  color: var(--steel);
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 420px;
  padding: 15px 20px;
  background: #17243b;
  color: var(--paper);
  border-left: 3px solid var(--bright);
  box-shadow: 0 12px 30px #0008;
  z-index: 10;
}
.toast:empty {
  display: none;
}
.loading {
  font: 700 0.75rem var(--ui);
  letter-spacing: 0.28em;
  color: var(--steel);
}
.cursor {
  display: inline-block;
  width: 5px;
  height: 12px;
  background: var(--electric);
  margin-left: 7px;
  animation: blink 0.8s steps(1) infinite;
}
.interaction {
  max-width: 560px;
  margin: 12vh auto;
  padding: 40px;
  background: #0c111b;
  border: 1px solid var(--line);
}
.interaction h1 {
  font: 700 2.8rem/0.9 var(--display);
}
.interaction p {
  color: var(--steel);
  line-height: 1.5;
}
.interaction form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .topline {
    display: none;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .rail {
    min-height: 0;
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail-label,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .rail a {
    white-space: nowrap;
    padding: 12px 14px;
  }
  .rail a span {
    display: none;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 35px;
  }
  .auth-head img {
    max-height: 150px;
  }
  .auth-head h1 {
    margin-bottom: 8px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .layout {
    min-height: calc(100vh - 66px);
  }
  main {
    padding: 28px 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel.wide {
    grid-column: auto;
  }
  .auth-panel {
    padding: 27px;
  }
  .hero-head h1 {
    font-size: 3.7rem;
  }
  .ephix-link {
    font-size: 0.56rem;
    white-space: nowrap;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
  }
  .row button {
    width: 100%;
  }
  .scene-art {
    width: 100%;
    right: -30%;
    opacity: 0.22;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .primary,
  .quiet {
    transition: none;
  }
  .cursor {
    animation: none;
  }
}
.form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--paper);
  background: #070a10;
  border: 1px solid #3a4657;
  border-radius: 0;
}
main:focus {
  outline: none;
}
.identity-card > div {
  min-width: 0;
}
.identity-card strong {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 600px) {
  .identity-card {
    min-height: 155px;
  }
  .identity-card .id-mark {
    display: none;
  }
}
.profile-avatar {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid var(--electric);
  margin: 14px 0 20px;
}
.profile-avatar[hidden] {
  display: none;
}
.scope-list {
  color: var(--paper);
  line-height: 1.8;
  border: 1px solid var(--line);
  padding: 15px 15px 15px 40px;
  background: #111722;
}
.admin-product {
  border: 1px solid var(--line);
  background: #0f151e;
}
.admin-product .row {
  border: 0;
}
.admin-product details {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
}
.admin-product summary {
  cursor: pointer;
  font: 700 0.75rem var(--ui);
  letter-spacing: 0.15em;
  color: var(--bright);
}
.admin-product form {
  padding: 20px 0;
}
.form textarea {
  min-height: 90px;
  width: 100%;
  padding: 12px 14px;
  color: var(--paper);
  background: #070a10;
  border: 1px solid #3a4657;
  resize: vertical;
}
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.checkbox-label input {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  accent-color: var(--electric);
}
