@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Teko:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --font-ui: "Sora", system-ui, sans-serif;
  --font-display: "Teko", "Arial Narrow", sans-serif;
  --bg: #090203;
  --bg-2: #190405;
  --bg-3: #2c070a;
  --panel: rgba(48, 11, 15, 0.78);
  --panel-strong: rgba(68, 12, 18, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --red: #ff314d;
  --red-2: #d71331;
  --red-3: #7c091c;
  --red-4: #470510;
  --orange: #ff8d3a;
  --gold: #ffbf5f;
  --text: #fff4f3;
  --muted: #d0a8ab;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 120, 134, 0.36);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  --shadow-red: 0 22px 54px rgba(255, 37, 73, 0.28);
  --radius: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 49, 77, 0.22), transparent 26rem),
    radial-gradient(circle at 84% 12%, rgba(255, 141, 58, 0.16), transparent 22rem),
    radial-gradient(circle at 54% 72%, rgba(215, 19, 49, 0.12), transparent 30rem),
    linear-gradient(135deg, #050102 0%, var(--bg) 36%, var(--bg-2) 68%, #110204 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
}

body::before {
  opacity: 0.14;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
  background-size: 28px 28px;
  animation: grid-shift 16s linear infinite;
}

body::after {
  z-index: -1;
  inset: -18%;
  opacity: 0.44;
  background:
    radial-gradient(circle, rgba(255, 49, 77, 0.18) 0%, transparent 42%),
    conic-gradient(from 90deg, rgba(255, 49, 77, 0.1), transparent 35%, rgba(255, 141, 58, 0.16), transparent 75%, rgba(255, 49, 77, 0.1));
  filter: blur(60px);
  animation: aurora 20s linear infinite;
}

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

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

img {
  max-width: 100%;
}

.topbar,
.hero-content,
.server-panel,
.features article,
.section-heading,
.auth-form,
.dashboard-sidebar,
.admin-panel,
.skin-card,
.profile-card {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  animation-delay: 0.05s;
}

.topbar::before {
  position: absolute;
  inset: 8px -10px;
  z-index: -1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(42, 9, 12, 0.78), rgba(20, 5, 7, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.26);
}

.topbar::after {
  position: absolute;
  inset: auto 8% 8px 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 155, 166, 0.56), transparent);
  opacity: 0.72;
  animation: nav-scan 7s linear infinite;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, var(--red), var(--red-3));
  box-shadow: var(--shadow-red);
  animation: brand-throb 4.8s ease-in-out infinite;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 0.95;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.topnav a {
  position: relative;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  transition: color 180ms ease, transform 180ms ease;
}

.topnav a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  transform: scale(0.82);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 49, 77, 0.22), rgba(255, 141, 58, 0.1));
  transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.topnav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 34px 0 54px;
}

.hero::before {
  position: absolute;
  inset: 2rem 0 auto;
  z-index: 0;
  width: min(54vw, 720px);
  height: 420px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 49, 77, 0.18), transparent 70%);
  filter: blur(38px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, hero-bob 10s ease-in-out infinite;
  animation-delay: 0.15s;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
.download-button strong,
.button,
.menu-item,
.stats-grid strong {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 0.85;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 24px rgba(255, 49, 77, 0.22);
  animation: title-glow 6.5s ease-in-out infinite;
}

.hero-text {
  max-width: 700px;
  margin: 24px 0 0;
  color: #f4cbcf;
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.72;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.download-button,
.button,
.menu-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(44, 7, 10, 0.94), rgba(21, 4, 6, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.download-button::before,
.button::before,
.menu-item::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  opacity: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.2) 45%, transparent 72%);
  transform: translateX(-120%);
}

.download-button::after,
.button::after,
.menu-item::after {
  position: absolute;
  inset: auto -18% -60% auto;
  width: 120px;
  height: 120px;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 106, 0.26), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.download-button {
  min-width: 250px;
  padding: 14px 20px;
}

.download-button:hover,
.button:hover,
.menu-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 72, 93, 0.12), 0 0 26px rgba(255, 59, 88, 0.18);
}

.download-button:hover::before,
.button:hover::before,
.menu-item:hover::before {
  opacity: 1;
  animation: shine 0.9s ease;
}

.download-button:hover::after,
.button:hover::after,
.menu-item:hover::after {
  opacity: 1;
}

.download-button:active,
.button:active,
.menu-item:active {
  transform: translateY(-1px) scale(0.99);
}

.download-button.primary,
.button.primary,
.menu-item.active {
  border-color: rgba(255, 159, 170, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #ff4c64 0%, var(--red) 38%, var(--red-2) 72%, var(--red-3) 100%);
  box-shadow: var(--shadow-red), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.download-button strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
}

.download-button small {
  display: block;
  margin-top: 4px;
  color: #ffe1e3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  min-width: 150px;
  padding: 0 18px;
  font-size: 1.1rem;
}

.button.ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.button.danger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(145deg, rgba(125, 9, 28, 0.84), rgba(71, 5, 16, 0.94));
}

.icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.server-panel,
.preview-panel,
.admin-form,
.features article,
.dashboard-sidebar,
.admin-panel,
.skin-card,
.stats-grid article,
.table-wrap,
.settings-list {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(77, 16, 22, 0.7), rgba(31, 8, 10, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.server-panel,
.admin-panel,
.auth-form,
.profile-card,
.skin-card {
  position: relative;
  overflow: hidden;
}

.server-panel::before,
.admin-panel::before,
.auth-form::before,
.profile-card::before,
.skin-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 64%, rgba(255, 82, 106, 0.12));
  pointer-events: none;
}

.server-panel {
  position: relative;
  z-index: 2;
  padding: 28px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both, panel-breathe 8s ease-in-out infinite;
  animation-delay: 0.28s;
}

.server-panel div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2c7cb;
  font-weight: 700;
}

.server-panel strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.server-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.server-panel::after {
  position: absolute;
  inset: auto -20% 0;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 73, 101, 0.14));
  opacity: 0.46;
  transform: translateY(80%);
  animation: panel-scan 7.5s ease-in-out infinite;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3dff86;
  box-shadow: 0 0 18px rgba(61, 255, 134, 0.8);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.hero-art {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(52vw, 620px);
  height: min(52vw, 620px);
  pointer-events: none;
  animation: art-drift 12s ease-in-out infinite;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.34));
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  inset: 12% 14%;
  content: "";
  border-radius: 50%;
}

.hero-art::before {
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: slow-spin 26s linear infinite;
}

.hero-art::after {
  inset: 22% 26%;
  border: 1px dashed rgba(255, 191, 95, 0.16);
  animation: slow-spin 18s linear infinite reverse;
}

.block,
.ember {
  position: absolute;
  display: block;
}

.block {
  border: 1px solid rgba(255, 180, 189, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 61, 89, 0.92), rgba(118, 8, 25, 0.9));
  transform-style: preserve-3d;
}

.block::after {
  position: absolute;
  inset: 18%;
  content: "";
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.block-1 {
  top: 6%;
  right: 10%;
  width: 120px;
  height: 120px;
  animation: cube-float-a 7.2s ease-in-out infinite;
}

.block-2 {
  top: 34%;
  right: 33%;
  width: 160px;
  height: 160px;
  animation: cube-float-b 8.8s ease-in-out infinite;
}

.block-3 {
  top: 67%;
  right: 10%;
  width: 92px;
  height: 92px;
  animation: cube-float-c 7.8s ease-in-out infinite;
}

.block-4 {
  top: 72%;
  right: 44%;
  width: 76px;
  height: 76px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 154, 77, 0.92), rgba(163, 55, 9, 0.92));
  animation: cube-float-d 6.6s ease-in-out infinite;
}

.ember {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255, 191, 95, 0.76);
  animation: ember-float 4s ease-in-out infinite;
}

.ember-1 {
  top: 15%;
  right: 58%;
}

.ember-2 {
  top: 56%;
  right: 13%;
  animation-delay: 1.1s;
}

.ember-3 {
  top: 84%;
  right: 31%;
  animation-delay: 1.9s;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 64px;
}

.features article {
  padding: 28px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

.features article::after,
.stats-grid article::after,
.skin-admin-item::after {
  position: absolute;
  inset: auto -14% -40% auto;
  width: 160px;
  height: 160px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 86, 109, 0.14), transparent 70%);
  opacity: 0.72;
  animation: orb-drift 9s ease-in-out infinite;
}

.features article:nth-child(1) {
  animation-delay: 0.35s;
}

.features article:nth-child(2) {
  animation-delay: 0.48s;
}

.features article:nth-child(3) {
  animation-delay: 0.61s;
}

.features article:hover,
.stats-grid article:hover,
.skin-admin-item:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26), 0 0 28px rgba(255, 49, 77, 0.12);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.features h2,
.preview-panel h2,
.section-heading h2 {
  margin: 18px 0 10px;
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.features p,
.preview-panel p,
.section-heading p,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 38px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.dashboard,
.cabinet-shell,
.auth-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 78px;
}

.auth-shell {
  display: grid;
  max-width: 760px;
  min-height: 72vh;
  align-content: center;
}

.auth-page::after {
  opacity: 0.56;
}

.auth-shell-split {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
  gap: 30px;
  align-items: center;
}

.auth-intro {
  position: relative;
  display: grid;
  gap: 22px;
}

.auth-heading {
  margin-bottom: 0;
  animation-delay: 0.18s;
}

.auth-heading h1 {
  font-size: clamp(4.2rem, 9vw, 7.2rem);
}

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

.auth-points article {
  position: relative;
  padding: 22px 24px 24px;
  border: 1px solid rgba(187, 71, 86, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(104, 20, 31, 0.92), rgba(63, 12, 19, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 30px rgba(0, 0, 0, 0.16);
  animation: fade-up 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  overflow: hidden;
}

.auth-points article::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%);
  pointer-events: none;
}

.auth-points article:nth-child(1) {
  animation-delay: 0.28s;
}

.auth-points article:nth-child(2) {
  animation-delay: 0.4s;
}

.auth-points span {
  display: inline-block;
  margin-bottom: 14px;
  color: #f0c460;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.16em;
}

.auth-points strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff5f3;
}

.auth-points p {
  margin: 0;
  max-width: 28ch;
  color: #d9b7bb;
  font-size: 1rem;
  line-height: 1.7;
}

.auth-stage {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 73, 101, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(76, 13, 20, 0.52), rgba(18, 5, 7, 0.82));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  animation: fade-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.5s;
}

.auth-stage::before,
.auth-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.auth-stage::before {
  inset: 0;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%);
  background-size: 24px 24px;
  opacity: 0.18;
}

.auth-stage::after {
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 58, 0.24), transparent 70%);
  filter: blur(8px);
}

.auth-stage-register::after {
  background: radial-gradient(circle, rgba(255, 49, 77, 0.28), transparent 72%);
}

.auth-stage-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.auth-stage-ring.ring-a {
  inset: 40px auto auto 42px;
  width: 240px;
  height: 240px;
  animation: slow-spin 18s linear infinite;
}

.auth-stage-ring.ring-b {
  inset: 80px 42px auto auto;
  width: 160px;
  height: 160px;
  border-style: dashed;
  border-color: rgba(255, 191, 95, 0.22);
  animation: slow-spin 12s linear infinite reverse;
}

.auth-stage-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(255, 58, 89, 0.88), rgba(108, 9, 27, 0.9));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
}

.auth-card-main {
  top: 98px;
  left: 80px;
  display: grid;
  gap: 8px;
  min-width: 250px;
  padding: 22px;
  animation: auth-card-main 8s ease-in-out infinite;
}

.auth-card-main strong,
.auth-card-main small {
  position: relative;
  z-index: 1;
}

.auth-card-main strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card-main small {
  color: rgba(255, 236, 238, 0.84);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card-side {
  top: 42px;
  right: 70px;
  width: 110px;
  height: 110px;
  animation: auth-float-a 7.2s ease-in-out infinite;
}

.auth-card-bottom {
  right: 110px;
  bottom: 34px;
  width: 86px;
  height: 86px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(255, 154, 77, 0.9), rgba(144, 41, 8, 0.9));
  animation: auth-float-b 6.4s ease-in-out infinite;
}

.auth-stage-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4cff8c;
  box-shadow: 0 0 18px rgba(76, 255, 140, 0.85);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.auth-form {
  max-width: 520px;
  width: 100%;
  padding: 30px;
  animation-delay: 0.22s;
}

.auth-form-login,
.auth-form-register {
  justify-self: end;
}

.auth-form-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-form-note {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form-note a {
  color: #ffe6e9;
  font-weight: 700;
}

.auth-form-note a:hover {
  color: var(--gold);
}

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

.dashboard-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 20px;
  animation-delay: 0.18s;
}

.menu-item {
  min-height: 50px;
  justify-content: flex-start;
  padding: 0 16px;
  font-size: 1.08rem;
}

.dashboard-content {
  min-width: 0;
}

.admin-panel {
  display: none;
  padding: 26px;
}

.admin-panel.active {
  display: block;
  animation: fade-up 0.5s ease both;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 24px;
}

.section-heading h1 {
  font-size: clamp(3.3rem, 6vw, 5.8rem);
}

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

.stats-grid article {
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.stats-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 2.4rem;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.compact-form {
  max-width: 760px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #ffe3e6;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-form input[type="file"] {
  padding: 10px;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: rgba(255, 75, 99, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 49, 77, 0.12), 0 0 18px rgba(255, 49, 77, 0.12);
  transform: translateY(-1px);
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.save-state {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  font-weight: 700;
}

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

.skin-admin-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.skin-admin-item img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  image-rendering: pixelated;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.32);
}

.settings-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding: 20px;
  color: var(--muted);
  font-weight: 700;
}

.settings-list label {
  display: flex;
  gap: 10px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.profile-card {
  min-width: 0;
  animation-delay: 0.2s;
}

.skin-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  animation-delay: 0.32s;
}

.skin-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    rgba(0, 0, 0, 0.18);
  background-size: 22px 22px;
  position: relative;
  overflow: hidden;
}

.skin-preview::after {
  position: absolute;
  inset: -30%;
  content: "";
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.08), transparent 35%, rgba(255, 141, 58, 0.1), transparent 70%);
  animation: slow-spin 18s linear infinite;
}

.skin-preview canvas {
  width: 192px;
  height: 192px;
  image-rendering: pixelated;
}

code {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #ffd7dc;
  background: rgba(0, 0, 0, 0.28);
  overflow-wrap: anywhere;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes brand-throb {
  50% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 0 6px rgba(255, 49, 77, 0.08), var(--shadow-red);
  }
}

@keyframes shine {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes nav-scan {
  from {
    transform: translateX(-24%);
    opacity: 0.18;
  }

  50% {
    opacity: 0.82;
  }

  to {
    transform: translateX(24%);
    opacity: 0.18;
  }
}

@keyframes toggle-scan {
  from {
    transform: translateX(-40%);
  }

  to {
    transform: translateX(40%);
  }
}

@keyframes pulse-dot {
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 26px rgba(61, 255, 134, 0.95);
  }
}

@keyframes hero-bob {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes title-glow {
  50% {
    text-shadow: 0 0 34px rgba(255, 80, 107, 0.34), 0 0 80px rgba(255, 48, 77, 0.14);
  }
}

@keyframes panel-breathe {
  50% {
    transform: translateY(-3px);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.52), 0 0 34px rgba(255, 65, 97, 0.12);
  }
}

@keyframes panel-scan {
  0%,
  100% {
    transform: translateY(82%);
  }

  50% {
    transform: translateY(18%);
  }
}

@keyframes cube-float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(10deg);
  }

  50% {
    transform: translate3d(-18px, 18px, 0) rotate(22deg);
  }
}

@keyframes art-drift {
  50% {
    transform: translate3d(-10px, 8px, 0);
  }
}

@keyframes cube-float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-14deg);
  }

  50% {
    transform: translate3d(16px, -22px, 0) rotate(-2deg);
  }
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-10px, -16px, 0) scale(1.08);
  }
}

@keyframes cube-float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }

  50% {
    transform: translate3d(-14px, -16px, 0) rotate(24deg);
  }
}

@keyframes cube-float-d {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }

  50% {
    transform: translate3d(18px, 12px, 0) rotate(-4deg);
  }
}

@keyframes ember-float {
  50% {
    transform: translateY(-16px) scale(1.08);
    opacity: 0.64;
  }
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes aurora {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.08);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes auth-card-main {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(10px, -12px, 0) rotate(2deg);
  }
}

@keyframes auth-float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(10deg);
  }

  50% {
    transform: translate3d(-10px, 14px, 0) rotate(20deg);
  }
}

@keyframes auth-float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }

  50% {
    transform: translate3d(14px, -10px, 0) rotate(-2deg);
  }
}

@keyframes grid-shift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(28px);
  }
}

@media (max-width: 980px) {
  .hero,
  .features,
  .dashboard,
  .cabinet-grid,
  .stats-grid,
  .auth-shell-split,
  .auth-points {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-art {
    inset: 8% 0 auto auto;
    width: 92vw;
    height: 92vw;
    opacity: 0.56;
  }

  .server-panel {
    max-width: 520px;
  }

  .dashboard-sidebar {
    position: static;
  }

  .auth-form-login,
  .auth-form-register {
    justify-self: start;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar::before {
    inset: 0;
    border-radius: 28px;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .topnav a {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .download-button {
    width: 100%;
    justify-content: flex-start;
  }

  .form-row,
  .footer,
  .skin-admin-item,
  .auth-points {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .stats-grid strong {
    font-size: 2rem;
  }

  .auth-stage {
    min-height: 270px;
  }

  .auth-card-main {
    top: 92px;
    left: 28px;
    min-width: 210px;
  }

  .auth-card-side {
    right: 28px;
  }

  .auth-card-bottom {
    right: 40px;
    bottom: 24px;
  }
}

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