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

:root {
  --bg-0: #05080f;
  --bg-1: #0d1324;
  --bg-2: #1a2142;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-soft: rgba(255, 255, 255, 0.02);
  --panel-strong: rgba(12, 20, 38, 0.88);
  --text-0: #f8fbff;
  --text-1: #b8c7de;
  --primary: #2bf5c7;
  --secondary: #67a2ff;
  --accent: #ffbb5b;
  --danger: #ff7272;
  --success: #59f2a8;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  --bg-glow-1: rgba(30, 45, 102, 0.62);
  --bg-glow-2: rgba(34, 71, 69, 0.58);
  --scrollbar-track: #1f3441;
  --scrollbar-rail: #162632;
  --scrollbar-thumb: #4e7fbc;
  --scrollbar-thumb-hover: #67a2ff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1160px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(circle at 12% 18%, var(--bg-glow-1) 0%, rgba(30, 45, 102, 0) 38%),
    radial-gradient(circle at 88% 3%, var(--bg-glow-2) 0%, rgba(34, 71, 69, 0) 40%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 46%, var(--bg-2));
  line-height: 1.45;
  overflow-x: hidden;
}

body[data-theme="light"] {
  --bg-0: #fbfcff;
  --bg-1: #f4f8ff;
  --bg-2: #edf3ff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.54);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text-0: #1e2a3b;
  --text-1: #5b6f8f;
  --primary: #16b9a1;
  --secondary: #3f79dd;
  --accent: #da9a3a;
  --danger: #d25a6e;
  --success: #299c74;
  --border: rgba(43, 70, 118, 0.18);
  --shadow: 0 14px 30px rgba(101, 123, 156, 0.15);
  --bg-glow-1: rgba(158, 186, 248, 0.46);
  --bg-glow-2: rgba(170, 222, 211, 0.52);
  --scrollbar-track: #dbe8f1;
  --scrollbar-rail: #c8d9e5;
  --scrollbar-thumb: #4f83c2;
  --scrollbar-thumb-hover: #246fc4;
}

* {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 18px;
  height: 18px;
}

*::-webkit-scrollbar-track {
  border-left: 1px solid rgba(91, 157, 171, 0.2);
  border-right: 1px solid rgba(43, 245, 199, 0.18);
  background:
    linear-gradient(90deg, rgba(4, 13, 20, 0.28), transparent 34%, rgba(43, 245, 199, 0.13) 100%),
    var(--scrollbar-track);
}

*::-webkit-scrollbar-button {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, transparent 44%, rgba(81, 137, 184, 0.75) 45% 55%, transparent 56%)
    center / 8px 8px no-repeat,
    var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  min-height: 68px;
  min-width: 68px;
  border: 6px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover), var(--scrollbar-thumb)) padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #75b4f7, #5b91d4) padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 20px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, rgba(5, 8, 15, 0.6), transparent 36%, rgba(43, 245, 199, 0.16)),
    var(--scrollbar-track);
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  width: 20px;
  height: 20px;
  background-color: var(--scrollbar-track);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 8px 8px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 92px;
  border: 7px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #5f93d0, #4d7db9) padding-box;
  box-shadow: inset 0 0 0 1px rgba(130, 184, 236, 0.24);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #75b4f7, #5b91d4) padding-box;
}

html::-webkit-scrollbar-button:single-button:vertical:decrement,
body::-webkit-scrollbar-button:single-button:vertical:decrement,
*::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image:
    linear-gradient(45deg, transparent 50%, #4f83c2 50%),
    linear-gradient(135deg, #4f83c2 50%, transparent 50%);
  background-position: calc(50% - 4px) 50%, calc(50% + 4px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

html::-webkit-scrollbar-button:single-button:vertical:increment,
body::-webkit-scrollbar-button:single-button:vertical:increment,
*::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image:
    linear-gradient(135deg, transparent 50%, #4f83c2 50%),
    linear-gradient(45deg, #4f83c2 50%, transparent 50%);
  background-position: calc(50% - 4px) 50%, calc(50% + 4px) 50%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.downloads-summary-meta,
.downloads-meta-notes,
.downloads-table-wrap,
.table-scroll,
.debug-log,
.form-stack textarea {
  scrollbar-gutter: stable;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

body[data-theme="light"] .site-nav a:hover {
  background: rgba(73, 97, 145, 0.12);
}

body[data-theme="light"] .scroll-progress {
  box-shadow: 0 0 10px rgba(81, 141, 227, 0.38);
}

body[data-theme="light"] .form-stack input,
body[data-theme="light"] .form-stack textarea,
body[data-theme="light"] .table-head input,
body[data-theme="light"] .users-table select {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(70, 89, 126, 0.24);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 80;
  background: linear-gradient(90deg, #69e1ff, var(--primary), #ffd08b);
  box-shadow: 0 0 12px rgba(105, 225, 255, 0.7);
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(112, 188, 255, 0.26) 0%, rgba(112, 188, 255, 0) 72%);
  transition: opacity 0.22s ease;
}

.cursor-glow.is-active {
  opacity: 1;
}

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

img {
  max-width: 100%;
}

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

.orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(8px);
  animation: drift 13s ease-in-out infinite;
}

.orb-one {
  width: 300px;
  height: 300px;
  top: 8%;
  left: -60px;
  background: rgba(103, 162, 255, 0.3);
}

.orb-two {
  width: 360px;
  height: 360px;
  top: 56%;
  right: -120px;
  background: rgba(43, 245, 199, 0.26);
  animation-delay: -5s;
}

.orb-three {
  width: 240px;
  height: 240px;
  bottom: -90px;
  left: 40%;
  background: rgba(255, 187, 91, 0.18);
  animation-delay: -2s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
  opacity: 0.42;
  animation: gridShift 40s linear infinite;
}

.glass {
  background: linear-gradient(160deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.site-header {
  width: var(--container);
  margin: 20px auto 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 14px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.brand-text {
  display: inline-block;
  line-height: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #041a2f;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-1);
  padding: 8px 12px;
  border-radius: 999px;
  position: relative;
  transition: 0.2s ease;
}

.nav-auth-link,
.nav-auth-btn {
  margin-top: 4px;
}

.nav-auth-btn {
  width: max-content;
  align-self: flex-start;
}

.nav-auth-link {
  display: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #7fd7ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.09);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--text-0);
}

.auth-slot {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-0);
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-0);
  font-weight: 700;
  text-transform: uppercase;
}

.profile-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
}

.theme-toggle {
  width: 42px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(33, 47, 83, 0.96), rgba(18, 30, 58, 0.9));
  color: var(--text-0);
  box-shadow: 0 9px 20px rgba(4, 12, 30, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 162, 255, 0.6);
}

body[data-theme="light"] .theme-toggle {
  background: linear-gradient(145deg, #ffffff, #e5edfb);
  border-color: rgba(86, 112, 160, 0.34);
  color: #2a3f63;
  box-shadow: 0 8px 16px rgba(111, 132, 171, 0.28);
}

body[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(63, 121, 221, 0.55);
}

.theme-toggle:focus {
  outline: 2px solid rgba(103, 162, 255, 0.45);
  border-color: rgba(103, 162, 255, 0.45);
}

.theme-toggle-icon {
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.theme-toggle-icon-sun {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.65) rotate(-18deg);
}

.theme-toggle-icon-moon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset -4px 0 0 0 currentColor;
  opacity: 1;
  transform: scale(1);
}

body[data-theme="light"] .theme-toggle-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body[data-theme="light"] .theme-toggle-icon-moon {
  opacity: 0;
  transform: scale(0.65);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  color: var(--text-0);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-primary {
  color: #042833;
  background: linear-gradient(120deg, var(--primary), #6de4ff);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.15);
}

.btn-ghost {
  color: var(--text-0);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

main {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 24px;
}

.section {
  margin: 48px 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 7px 0 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.kicker {
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  margin-top: 40px;
  align-items: stretch;
}

.hero-content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin: 10px 0 14px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  min-height: clamp(9rem, 13vw, 11.25rem);
}

.gradient-text {
  background: linear-gradient(140deg, #79deff, #a2ffd9, #ffd28f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gradient-text.is-typing {
  display: inline-block;
  min-height: 1.25em;
  max-width: 100%;
  white-space: normal;
  vertical-align: bottom;
}

.gradient-text-copy {
  display: inline;
  overflow-wrap: anywhere;
}

.gradient-text-caret {
  display: inline-block;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  width: 2px;
  height: 1.05em;
  background: rgba(226, 242, 255, 0.95);
  animation: cursorBlink 0.85s steps(1, end) infinite;
}

body[data-theme="light"] .gradient-text-caret {
  background: rgba(38, 70, 120, 0.8);
}

.gradient-text.is-swapping {
  opacity: 0.3;
  transform: translateY(6px);
}

.hero-copy {
  margin: 0;
  color: var(--text-1);
  max-width: 58ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.hero-badges span {
  font-size: 0.76rem;
  border-radius: 999px;
  padding: 5px 10px;
  color: #bbecff;
  border: 1px solid rgba(152, 212, 255, 0.35);
  background: rgba(20, 45, 75, 0.55);
  animation: badgePulse 2.8s ease-in-out infinite;
}

.hero-badges span:nth-child(2) {
  animation-delay: -0.7s;
}

.hero-badges span:nth-child(3) {
  animation-delay: -1.4s;
}

.live-status {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #b6f8d8;
}

.live-status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #59f2a8;
  box-shadow: 0 0 10px rgba(89, 242, 168, 0.8);
  animation: liveBlink 1.3s ease-in-out infinite;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-panel h3 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.terminal-header span:nth-child(1) {
  background: #ff6b6b;
}

.terminal-header span:nth-child(2) {
  background: #ffd56b;
}

.terminal-header span:nth-child(3) {
  background: #62f2a7;
}

.terminal-header p {
  margin: 0 0 0 6px;
  color: var(--text-1);
  font-size: 0.84rem;
}

.terminal-body {
  border-radius: var(--radius-md);
  border: 1px solid rgba(103, 162, 255, 0.22);
  background: linear-gradient(165deg, rgba(4, 15, 33, 0.86), rgba(9, 20, 46, 0.74));
  padding: 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terminal-body p {
  margin: 0;
  color: #d3e7ff;
  font-size: 0.9rem;
  font-family: "Consolas", "Menlo", monospace;
  line-height: 1.4;
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}

.terminal-body p:last-child {
  margin-bottom: 0;
}

.terminal-body .prompt {
  color: #8bffca;
  margin-right: 6px;
}

.typing-line {
  position: relative;
}

.typing-line::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: #c9e7ff;
  animation: cursorBlink 0.8s steps(1, end) infinite;
}

.typing-complete {
  color: #a8d8ff;
}

.stats-ticker {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-pill {
  padding: 15px 16px;
  display: grid;
  gap: 2px;
}

.stat-pill span {
  font-size: 1.7rem;
  font-family: "Sora", sans-serif;
  color: #84e6ff;
  line-height: 1;
}

.stat-pill small {
  color: var(--text-1);
  font-size: 0.86rem;
}

[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-tilt]:hover {
  box-shadow:
    0 20px 38px rgba(2, 7, 20, 0.58),
    0 0 0 1px rgba(123, 190, 255, 0.14) inset;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 20px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 201, 255, 0.42);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
}

.feature-card p {
  margin: 0;
  color: var(--text-1);
}

.repo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.repo-main h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.repo-main p {
  margin: 8px 0 14px;
  color: var(--text-1);
}

.repo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.repo-facts span {
  color: var(--text-1);
}

.repo-facts strong {
  color: var(--text-0);
  font-weight: 600;
}

.repo-language-live {
  margin: 0 0 14px;
}

.repo-language-line {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.repo-language-segment {
  height: 100%;
  min-width: 2px;
  transition: width 0.45s ease;
}

.repo-language-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}

.repo-language-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-1);
  white-space: nowrap;
}

.repo-language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.repo-contributors {
  margin: 0 0 14px;
}

.repo-main .repo-contrib-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-1);
}

.repo-contrib-list {
  min-height: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-contrib-item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.repo-contrib-item:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 162, 255, 0.95);
}

.repo-contrib-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.repo-contrib-more,
.repo-contrib-empty {
  font-size: 0.78rem;
  color: var(--text-1);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
}

.repo-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.repo-metrics div {
  min-width: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 8px;
}

.repo-metrics span {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.repo-metrics small {
  color: var(--text-1);
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-card .btn {
  margin-top: auto;
  width: max-content;
}

.download-card h3 {
  color: #cff0ff;
}

.downloads-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.downloads-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .downloads-summary {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  }
}

.downloads-summary-copy h3 {
  margin: 6px 0 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.downloads-summary-copy p {
  margin: 0;
  color: var(--text-1);
  max-width: 62ch;
}

.downloads-summary-meta {
  display: grid;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.downloads-summary-meta::-webkit-scrollbar,
.downloads-meta-notes::-webkit-scrollbar {
  width: 10px;
}

.downloads-summary-meta::-webkit-scrollbar-track,
.downloads-meta-notes::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--scrollbar-track);
}

.downloads-summary-meta::-webkit-scrollbar-thumb,
.downloads-meta-notes::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(43, 245, 199, 0.86), rgba(103, 162, 255, 0.54))
    border-box;
  background-clip: padding-box;
}

.downloads-meta-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.downloads-meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-1);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.downloads-meta-card strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.4;
}

.downloads-meta-notes {
  max-height: 190px;
  overflow: auto;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.downloads-debug {
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
}

.downloads-debug summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-1);
}

.downloads-debug-block {
  margin-top: 10px;
}

.downloads-debug-block p {
  margin: 0 0 6px;
  color: var(--text-1);
  font-size: 0.82rem;
}

.downloads-debug-rows {
  margin: 8px 0 0;
  padding-left: 18px;
}

.downloads-debug-rows li {
  color: var(--text-1);
  font-size: 0.8rem;
  line-height: 1.4;
}

.downloads-debug-rows li span {
  display: block;
}

.old-version-current {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(63, 229, 184, 0.36);
  background: rgba(63, 229, 184, 0.12);
  color: #8ff7d4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.downloads-archive {
  grid-column: 1 / -1;
  padding: 18px;
  scroll-margin-top: 110px;
}

.downloads-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.downloads-archive summary::-webkit-details-marker {
  display: none;
}

.downloads-archive summary span,
.downloads-os-head p {
  color: var(--primary);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.downloads-archive summary strong {
  color: var(--text-0);
  font-family: "Sora", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  text-align: right;
}

.downloads-archive-body {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.downloads-os-group {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

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

.downloads-os-head h3 {
  margin: 4px 0 0;
  font-family: "Sora", sans-serif;
}

.downloads-os-head > span {
  color: var(--text-1);
  font-size: 0.82rem;
  white-space: nowrap;
}

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

.downloads-version-group {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 12, 24, 0.34);
  padding: 12px;
}

.downloads-version-shell {
  display: grid;
  gap: 12px;
}

.downloads-version-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.downloads-version-head h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.downloads-version-head p {
  color: var(--text-1);
  font-size: 0.82rem;
  margin: 4px 0 0;
}

.downloads-version-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.downloads-version-meta > span:not(.old-version-current) {
  color: var(--text-1);
  font-size: 0.82rem;
}

.downloads-version-os-list {
  display: grid;
  gap: 12px;
}

.downloads-file-list {
  display: grid;
  gap: 8px;
}

.downloads-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.downloads-file-row:hover {
  background: rgba(43, 245, 199, 0.08);
  border-color: rgba(43, 245, 199, 0.26);
  transform: translateY(-1px);
}

.downloads-file-row strong,
.downloads-file-row small {
  display: block;
}

.downloads-file-row small {
  color: var(--text-1);
  font-size: 0.78rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.downloads-file-action {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.downloads-file-action em {
  color: var(--text-1);
  display: block;
  font-style: normal;
  font-weight: 500;
}

.downloads-notes-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-1);
}

.downloads-notes-list li + li {
  margin-top: 6px;
}

.downloads-platform {
  padding: 16px;
  min-width: 0;
}

.downloads-platform.is-featured {
  border-color: rgba(43, 245, 199, 0.35);
  box-shadow: 0 0 0 1px rgba(43, 245, 199, 0.12), var(--shadow);
}

.downloads-platform-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.downloads-platform-family {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.downloads-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: #bbecff;
  border: 1px solid rgba(103, 162, 255, 0.34);
  background: rgba(20, 45, 75, 0.42);
  white-space: nowrap;
}

.downloads-platform h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.downloads-platform-summary {
  margin: 0 0 8px;
  color: var(--text-0);
  font-size: 0.92rem;
}

.downloads-platform-file {
  margin: 0 0 12px;
  color: var(--text-1);
  font-size: 0.84rem;
}

.downloads-platform-list,
.downloads-platform-steps ol {
  margin: 0;
  padding-left: 18px;
  color: var(--text-1);
}

.downloads-platform-list li + li,
.downloads-platform-steps li + li {
  margin-top: 5px;
}

.downloads-platform-steps {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.downloads-platform-steps-title {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.downloads-platform p {
  margin: 0 0 12px;
  color: var(--text-1);
  font-size: 0.88rem;
}

.downloads-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.downloads-guide {
  padding: 18px;
  min-height: 100%;
}

.downloads-guide h3 {
  margin: 8px 0 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.28;
}

.downloads-guide p {
  margin: 0;
  color: var(--text-1);
  font-size: 0.92rem;
  line-height: 1.55;
}

.downloads-guide-tag {
  margin: 0;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.downloads-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.downloads-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.downloads-table td:first-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.downloads-table th,
.downloads-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.downloads-table th {
  color: var(--text-1);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.downloads-table td {
  font-size: 0.86rem;
}

.downloads-table td .btn {
  min-width: 92px;
}

.downloads-table td[colspan] {
  text-align: center;
  color: var(--text-1);
}

.coming-soon {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
}

.coming-soon h3 {
  margin: 10px 0 10px;
  font-family: "Sora", sans-serif;
}

.coming-soon p {
  color: var(--text-1);
  margin: 0;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  background: rgba(43, 245, 199, 0.14);
  border: 1px solid rgba(43, 245, 199, 0.32);
  color: #b5ffe7;
}

.future-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(80px, 1fr));
  gap: 10px;
}

.future-blocks span {
  display: block;
  min-height: 70px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  animation: pulse 2.4s ease-in-out infinite;
}

.future-blocks span:nth-child(2) {
  animation-delay: -0.6s;
}

.future-blocks span:nth-child(3) {
  animation-delay: -1.1s;
}

.future-blocks span:nth-child(4) {
  animation-delay: -1.7s;
}

.cta {
  padding: 24px;
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.cta p {
  color: var(--text-1);
}

.cta .hero-actions {
  justify-content: center;
}

.site-footer {
  text-align: center;
  color: var(--text-1);
  padding: 24px 14px 36px;
}

.auth-layout {
  width: var(--container);
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: start;
}

.auth-intro h1 {
  margin: 8px 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.auth-intro p {
  margin: 0;
  color: var(--text-1);
  max-width: 52ch;
}

.auth-card {
  padding: 24px;
}

.auth-card h2 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--text-1);
  font-size: 0.92rem;
}

.form-stack input,
.form-stack textarea,
.table-head input,
.users-table select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-0);
  font: inherit;
  padding: 11px 12px;
}

.form-stack textarea {
  resize: vertical;
}

.form-stack input:focus,
.form-stack textarea:focus,
.table-head input:focus,
.users-table select:focus {
  outline: 2px solid rgba(103, 162, 255, 0.45);
  border-color: rgba(103, 162, 255, 0.45);
}

.form-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.form-foot a {
  font-size: 0.9rem;
  color: #aed8ff;
}

.profile-layout {
  width: var(--container);
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.profile-summary,
.profile-form-wrap {
  padding: 24px;
}

.avatar {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-family: "Sora", sans-serif;
  margin-bottom: 16px;
  background: linear-gradient(140deg, #78d4ff, #69f5b8);
  color: #062330;
}

.profile-summary h1 {
  margin: 0;
  font-size: 1.6rem;
  font-family: "Sora", sans-serif;
}

.profile-summary p {
  margin: 8px 0;
  color: var(--text-1);
}

.profile-form-wrap h2 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
}

.admin-shell {
  width: min(1260px, 95vw);
  margin: 14px auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}

.admin-sidebar {
  padding: 18px;
  min-height: calc(100vh - 28px);
  position: sticky;
  top: 14px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-1);
  transition: 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.08);
}

.admin-note {
  margin-top: 18px;
  color: var(--text-1);
  font-size: 0.9rem;
}

.admin-main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-topbar {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-topbar h1 {
  margin: 4px 0 0;
  font-family: "Sora", sans-serif;
}

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

.stat-card {
  padding: 16px;
}

.stat-card h3 {
  margin: 0;
  color: var(--text-1);
  font-size: 0.95rem;
}

.stat-card p {
  margin: 8px 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.9rem;
  color: var(--primary);
}

.admin-table-wrap {
  padding: 16px;
}

.admin-recent-wrap {
  padding: 16px;
}

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

.table-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-db-wrap {
  padding: 16px;
  display: grid;
  gap: 14px;
}

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

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

.table-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.table-head input {
  max-width: 360px;
}

.table-scroll {
  overflow: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.users-table th,
.users-table td {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 11px 8px;
}

.users-table th {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-1);
}

.users-table td {
  font-size: 0.92rem;
}

.users-table select {
  min-width: 92px;
}

.password-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-row input {
  margin: 0;
  padding-right: 44px;
}

.password-visibility-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-1);
  border-radius: 999px;
  width: 30px;
  min-height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-visibility-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-visibility-btn .eye-off {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.password-visibility-btn.is-visible {
  color: #9ee6ff;
}

.password-visibility-btn.is-visible .eye-off {
  opacity: 0;
}

.password-visibility-btn:hover {
  background: rgba(139, 216, 255, 0.12);
}

.password-visibility-btn:focus-visible {
  outline: 2px solid rgba(103, 162, 255, 0.45);
  outline-offset: 1px;
}

.admin-db-wrap .form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.db-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-1);
}

.audit-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.audit-status-success {
  background: rgba(89, 242, 168, 0.2);
  color: #96ffd0;
  border: 1px solid rgba(89, 242, 168, 0.4);
}

.audit-status-failed {
  background: rgba(255, 114, 114, 0.2);
  color: #ffb3b3;
  border: 1px solid rgba(255, 114, 114, 0.4);
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
}

.toast {
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  padding: 14px 16px 14px 18px;
  color: #f3fbff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 15, 32, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-left: 5px solid var(--success);
}

.toast-error {
  border-left: 5px solid var(--danger);
}

.toast-info {
  border-left: 5px solid var(--secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 24px, 0);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-56px, -56px, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.86;
  }
  50% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

@keyframes liveBlink {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0;
  }
}

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

  .stats-ticker {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .repo-card {
    grid-template-columns: 1fr;
  }

  .downloads-sections {
    grid-template-columns: 1fr;
  }

  .coming-soon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 10px;
    position: sticky;
  }

  .brand {
    margin-right: 0;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: rgba(11, 19, 38, 0.82);
    border-radius: 12px;
    z-index: 25;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .theme-switcher {
    width: max-content;
    order: 2;
  }

  .auth-slot {
    order: 2;
    display: none;
  }

  .nav-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-0);
    background: rgba(255, 255, 255, 0.06);
  }

  .repo-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .repo-metrics span {
    font-size: 1.05rem;
  }

  .repo-metrics small {
    font-size: 0.72rem;
  }

  .repo-facts {
    font-size: 0.82rem;
    gap: 6px 12px;
  }

  .repo-language-pill {
    font-size: 0.72rem;
  }

  .auth-slot {
    grid-area: auth;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .auth-slot .btn {
    min-width: 110px;
  }

  .downloads-archive summary,
  .downloads-os-head,
  .downloads-version-head,
  .downloads-file-row {
    grid-template-columns: 1fr;
  }

  .downloads-archive summary,
  .downloads-os-head,
  .downloads-version-head {
    align-items: start;
    flex-direction: column;
  }

  .downloads-archive summary strong,
  .downloads-file-action,
  .downloads-version-meta {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .form-foot {
    flex-direction: column;
  }

  .hero-badges {
    gap: 6px;
  }

  .hero-badges span {
    font-size: 0.7rem;
  }

  .cursor-glow {
    display: none;
  }

  .downloads-table .col-updated {
    display: none;
  }
}

.admin-static-progress {
  transform: scaleX(1);
  opacity: 0.5;
}

.admin-subtitle {
  margin: 8px 0 0;
  color: var(--text-1);
  max-width: 60ch;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.admin-user-chip strong,
.admin-user-chip small {
  display: block;
}

.admin-user-chip small {
  color: var(--text-1);
}

.admin-user-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(89, 242, 168, 0.68);
}

.admin-sidebar-actions {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.admin-panel {
  padding: 20px;
}

.admin-grid-two,
.dashboard-grid {
  display: grid;
  gap: 14px;
}

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

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

.panel-head h2 {
  margin: 6px 0 0;
  font-family: "Sora", sans-serif;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.status-badge-success {
  color: #071d14;
  background: linear-gradient(135deg, #77f0b5, #d8ffe9);
}

.status-badge-error {
  color: #3b1010;
  background: linear-gradient(135deg, #ff8f8f, #ffd2d2);
}

.status-badge-warning {
  color: #3a2403;
  background: linear-gradient(135deg, #ffd58d, #fff2d2);
}

.status-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.status-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
}

.status-card p {
  margin: 0;
  color: var(--text-1);
}

.status-success {
  background: rgba(45, 156, 116, 0.14);
  border-color: rgba(89, 242, 168, 0.34);
}

.status-error {
  background: rgba(210, 90, 110, 0.12);
  border-color: rgba(255, 114, 114, 0.34);
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.info-list span {
  color: var(--text-1);
}

.info-list strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flash-message {
  margin-bottom: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.flash-success {
  background: rgba(45, 156, 116, 0.14);
  border-color: rgba(89, 242, 168, 0.34);
}

.flash-error {
  background: rgba(210, 90, 110, 0.12);
  border-color: rgba(255, 114, 114, 0.34);
}

.flash-warning {
  background: rgba(218, 154, 58, 0.12);
  border-color: rgba(255, 187, 91, 0.34);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  overflow: hidden;
}

.product-image-wrap {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-1);
  font-weight: 600;
}

.product-card-body {
  padding: 16px;
}

.product-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-card h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.product-card p {
  color: var(--text-1);
}

.product-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--text-1);
}

.inline-form {
  margin: 0;
}

.btn-danger {
  color: #fff4f4;
  background: linear-gradient(135deg, #b83f54, #d25a6e);
}

.btn-danger:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.empty-state {
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
}

.empty-state p {
  margin: 0;
  color: var(--text-1);
}

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

.field-span-full {
  grid-column: 1 / -1;
}

.admin-auth-layout {
  margin-bottom: 24px;
}

.admin-auth-copy {
  margin-top: 0;
  color: var(--text-1);
}

.helper-text {
  color: var(--text-1);
  align-self: center;
}

.debug-log {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow: auto;
}

.debug-log pre {
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 15, 33, 0.8);
  color: #d6ebff;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.85rem;
}

.compact-debug-log {
  max-height: 280px;
}

.admin-footer {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .dashboard-grid,
  .admin-grid-two,
  .product-form-grid,
  .db-info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .panel-head,
  .admin-topbar,
  .info-list div,
  .product-card-head {
    flex-direction: column;
    align-items: start;
  }

  .admin-user-chip {
    width: 100%;
  }

  .table-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-db-wrap .form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .db-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}
