:root {
  --bg: #1a1c22;
  --bg-alt: #16181e;
  --panel: #272a33;
  --panel-border: rgba(140, 150, 170, 0.10);
  --text-main: #d1dcff;
  --text-dim: #8b93a7;
  --gold: #f0b429;
  --gold-soft: rgba(240, 180, 41, 0.14);
  --gold-line: rgba(240, 180, 41, 0.45);
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Keyframes ---------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(240, 180, 41, 0); }
  50% { text-shadow: 0 0 14px rgba(240, 180, 41, 0.55); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.7); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---------- Background ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: fadeIn 1.2s ease both;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 760px;
  background: radial-gradient(circle, rgba(88,101,242,0.09) 0%, rgba(88,101,242,0) 60%);
  pointer-events: none;
  z-index: 0;
  animation: fadeIn 1.6s ease both;
}

.topbar {
  position: relative;
  z-index: 20;
  padding: 22px 28px 0;
  display: flex;
  justify-content: center;
}

.topbar-inner {
  width: fit-content;
  min-width: 480px;
  margin: 0;
  padding: 12px 20px 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--panel);
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.1s var(--ease-out) both;
  transition: box-shadow 0.3s ease;
}

.topbar-inner:hover {
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--text-main);
  text-transform: uppercase;
  transition: letter-spacing 0.3s ease;
}

.brand:hover .brand-name {
  letter-spacing: 0.6px;
}

.brand-name em {
  font-style: normal;
  color: var(--gold);
  transition: text-shadow 0.3s ease;
}

.brand:hover .brand-name em {
  animation: pulseGlow 1.6s ease-in-out infinite;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--discord);
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 15px;
  border-radius: 0;
  border: none;
  background: rgba(88, 101, 242, 0.12);
  box-shadow: none;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.login-link:hover {
  background: rgba(88, 101, 242, 0.2);
  box-shadow: none;
  transform: translateY(-2px);
}

.login-link:active {
  transform: translateY(0) scale(0.97);
}

.login-link:hover .discord-icon {
  transform: scale(1.15) rotate(-6deg);
}

.discord-icon {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.stage {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 32px 24px 48px;
}

.hero-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 44px 40px 36px;
  text-align: center;
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, 0.7);
  animation: scaleIn 1.0s var(--ease-out) both;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 90px -25px rgba(0, 0, 0, 0.8);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(140deg, var(--gold-line), transparent 40%, transparent 60%, rgba(255,255,255,0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: 0.2px;
  color: var(--text-main);
  margin-bottom: 18px;
  animation: fadeInUp 1.1s var(--ease-out) 0.2s both;
}

.hero-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 30px;
  animation: fadeInUp 1.1s var(--ease-out) 0.4s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 1.1s var(--ease-out) 0.6s both;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--gold);
  background: rgba(240, 180, 41, 0.12);
  padding: 12px 24px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}

.btn-primary:hover {
  background: rgba(240, 180, 41, 0.2);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-ghost {
  display: inline-block;
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--text-main);
  background: rgba(242, 241, 238, 0.08);
  padding: 12px 22px;
  border-radius: 0;
  border: none;
  transition: background 0.25s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}

.btn-ghost:hover {
  background: rgba(242, 241, 238, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.97);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: var(--discord);
  background: rgba(88, 101, 242, 0.12);
  padding: 13px 26px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-discord:active {
  transform: translateY(0) scale(0.97);
}

.login-error {
  font-size: 13px;
  color: #f2555a;
  background: rgba(242, 85, 90, 0.1);
  border: 1px solid rgba(242, 85, 90, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 24px;
  animation: fadeInUp 0.4s var(--ease-out) both;
}

.brand-name-link {
  text-decoration: none;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3bb36f;
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 8px 15px;
  border-radius: 0;
  border: none;
  background: rgba(47, 168, 96, 0.12);
  box-shadow: none;
  transition: background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.btn-home:hover {
  background: rgba(47, 168, 96, 0.2);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-home:active {
  transform: translateY(0) scale(0.97);
}

.btn-home:hover .home-icon {
  transform: translateY(-1.5px) scale(1.12);
}

.home-icon {
  flex-shrink: 0;
  transform: translateY(-1.5px);
  transition: transform 0.25s var(--ease-out);
}

@media (max-width: 560px) {
  .topbar-inner {
    min-width: 0;
    width: 100%;
  }

  .hero-card {
    padding: 34px 24px 28px;
  }

  .hero-title {
    font-size: 27px;
  }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s var(--ease-out);
}

.admin-avatar-wrap:hover .admin-avatar {
  transform: scale(1.08);
}

.admin-username {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.admin-card {
  max-width: 520px;
  text-align: left;
}

.admin-card .hero-title,
.admin-card .hero-text {
  text-align: center;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
  animation: fadeInUp 0.9s var(--ease-out) 0.3s both;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-dim);
}

.text-input,
.text-input:required,
.text-input:invalid,
.text-input:-moz-ui-invalid,
.text-input:focus,
.text-input:focus-visible,
.text-input:active {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: 0 !important;
  outline-style: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(240, 180, 41, 0.08);
  border-radius: 0;
  color: rgba(139, 147, 167, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.text-input::placeholder {
  color: rgba(139, 147, 167, 0.6);
}

.text-input:focus,
.text-input:focus-visible {
  background: rgba(240, 180, 41, 0.16);
  transform: translateY(-1px);
}

.text-input:-webkit-autofill,
.text-input:-webkit-autofill:hover,
.text-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(240, 180, 41, 0.08) inset;
  -webkit-text-fill-color: var(--text-main);
  border: 0 !important;
  transition: background-color 9999s ease-in-out 0s;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  border: none;
  border-radius: 12px;
  background: var(--bg-alt);
  cursor: pointer;
  text-align: center;
  transition: background 0.25s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.dropzone-icon {
  color: var(--text-dim);
  transition: transform 0.3s var(--ease-out), color 0.25s ease;
}

.dropzone.dragover .dropzone-icon,
.dropzone:hover .dropzone-icon {
  color: var(--gold);
  animation: floatY 1.4s ease-in-out infinite;
}

.dropzone-text {
  font-size: 14px;
  color: var(--text-dim);
}

.dropzone-link {
  color: var(--gold);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.dropzone-link:hover {
  opacity: 0.8;
}

.file-list {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--panel);
  border: none;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-main);
  text-align: left;
  animation: fadeInUp 0.3s var(--ease-out) both;
  transition: background 0.2s ease;
}

.file-item:hover {
  background: rgba(240, 180, 41, 0.08);
}

.file-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.file-remove:hover {
  color: #f2555a;
  background: rgba(242, 85, 90, 0.1);
  transform: scale(1.1) rotate(90deg);
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 0;
  background: rgba(47, 168, 96, 0.12);
  color: #3bb36f;
  box-shadow: none;
  transition: background 0.25s ease, transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}

.submit-btn:hover {
  background: rgba(47, 168, 96, 0.2);
  box-shadow: none;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0) scale(0.98);
}

.upload-status {
  text-align: center;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  animation: fadeInUp 0.35s var(--ease-out) both;
}

.upload-status.success {
  color: #3bb36f;
  background: rgba(59, 179, 111, 0.1);
}

.upload-status.error {
  color: #f2555a;
  background: rgba(242, 85, 90, 0.1);
}

.mods-card {
  max-width: 860px;
}

.mods-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
  text-align: left;
}

.mods-status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  padding: 16px 0;
}

.mod-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-alt);
  border: none;
  border-radius: 0;
  overflow: hidden;
  animation: fadeInUp 0.8s var(--ease-out) both;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.mod-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
}

.mod-item:nth-child(1) { animation-delay: 0.08s; }
.mod-item:nth-child(2) { animation-delay: 0.18s; }
.mod-item:nth-child(3) { animation-delay: 0.28s; }
.mod-item:nth-child(4) { animation-delay: 0.38s; }
.mod-item:nth-child(5) { animation-delay: 0.48s; }
.mod-item:nth-child(6) { animation-delay: 0.58s; }

.mod-name {
  display: block;
  font-size: 14px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-download {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 0;
  background: rgba(240, 180, 41, 0.12);
  color: var(--gold);
  box-shadow: none;
  transition: background 0.25s ease, letter-spacing 0.25s ease;
}

.mod-download:hover {
  background: rgba(240, 180, 41, 0.2);
  box-shadow: none;
  letter-spacing: 0.4px;
}

.mod-download:active {
  transform: scale(0.98);
}

@media (max-width: 760px) {
  .mods-card {
    max-width: 560px;
  }
  .mods-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .mods-list {
    grid-template-columns: 1fr;
  }
}

#discord-id,
#search-discord-id {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: rgba(240, 180, 41, 0.08) !important;
  border-radius: 0 !important;
  transition: background 0.2s ease;
}

#discord-id:focus,
#discord-id:focus-visible,
#search-discord-id:focus,
#search-discord-id:focus-visible {
  background: rgba(240, 180, 41, 0.16) !important;
  box-shadow: none !important;
  outline: 0 !important;
  border: 0 !important;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.notify1 {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
  pointer-events: none;
}

.notify1.show {
  transform: translateX(0);
  opacity: 1;
}

.notify1.success {
  background: rgba(47, 168, 96, 0.16);
  color: #3bb36f;
}

.notify1.error {
  background: rgba(242, 85, 90, 0.16);
  color: #f2555a;
}

@media (max-width: 560px) {
  .notify1 {
    left: 16px;
    right: 16px;
    top: 16px;
    transform: translateY(-120%);
  }
  .notify1.show {
    transform: translateY(0);
  }
}

.mod-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 20px;
}

.mod-name {
  padding: 0;
}

.mod-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 0;
  font-family: 'Chakra Petch', sans-serif;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.user-menu-btn:hover {
  opacity: 0.85;
}

.user-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s var(--ease-out);
}

.user-menu-btn:hover .user-avatar {
  transform: scale(1.08);
}

.user-username {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-main);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 160px;
  background: var(--panel);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 50;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(242, 85, 90, 0.08);
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #f2555a;
  text-decoration: none;
  background: rgba(242, 85, 90, 0.08);
  transition: background 0.2s ease, letter-spacing 0.2s ease;
}

.user-dropdown-item:hover {
  background: rgba(242, 85, 90, 0.16);
  letter-spacing: 0.4px;
}

.home-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.home-text {
  flex: 1 1 420px;
  text-align: left;
  animation: fadeInUp 1.1s var(--ease-out) both;
}

.home-text .hero-title {
  font-size: 42px;
  animation: none;
}

.home-text .hero-text {
  font-size: 16px;
  max-width: 480px;
  margin: 0 0 30px;
  animation: none;
}

.home-text .hero-actions {
  justify-content: flex-start;
  animation: none;
}

.stats-grid {
  flex: 1 1 480px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  border-radius: 0;
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0.02));
  animation: scaleIn 0.9s var(--ease-out) both;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.55);
}

.stat-card:nth-child(1) { animation-delay: 0.08s; }
.stat-card:nth-child(2) { animation-delay: 0.22s; }
.stat-card:nth-child(3) { animation-delay: 0.36s; }
.stat-card:nth-child(4) { animation-delay: 0.5s; }

.stat-card.customers {
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0.02));
}

.stat-card.customers .stat-icon,
.stat-card.customers .stat-value {
  color: var(--gold);
}

.stat-card.files {
  background: linear-gradient(160deg, rgba(192, 197, 206, 0.16), rgba(192, 197, 206, 0.02));
}

.stat-card.files .stat-icon,
.stat-card.files .stat-value {
  color: #c0c5ce;
}

.stat-card.downloads {
  background: linear-gradient(160deg, rgba(47, 168, 96, 0.16), rgba(47, 168, 96, 0.02));
}

.stat-card.downloads .stat-icon,
.stat-card.downloads .stat-value {
  color: #3bb36f;
}

.stat-card.discord {
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.16), rgba(88, 101, 242, 0.02));
}

.stat-card.discord .stat-icon,
.stat-card.discord .stat-value {
  color: var(--discord);
}

.stat-icon {
  color: var(--gold);
  opacity: 0.9;
  transition: transform 0.3s var(--ease-out);
}

.stat-card:hover .stat-icon {
  transform: scale(1.15) rotate(-4deg);
}

.stat-value {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.2px;
  color: var(--gold);
  transition: transform 0.25s var(--ease-out);
}

.stat-card:hover .stat-value {
  transform: scale(1.06);
}

.stat-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 980px) {
  .home-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .home-text {
    text-align: center;
  }

  .home-text .hero-text {
    margin: 0 auto 30px;
  }

  .home-text .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  animation: fadeIn 0.5s ease both;
}

.admin-sidebar {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(240, 180, 41, 0.06);
  color: var(--text-dim);
  border: none;
  border-radius: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), padding-left 0.2s ease;
}

.admin-nav-btn:hover {
  background: rgba(240, 180, 41, 0.12);
  color: var(--text-main);
  padding-left: 20px;
}

.admin-nav-btn.active {
  background: rgba(240, 180, 41, 0.16);
  color: var(--gold);
}

.admin-nav-icon {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}

.admin-nav-btn:hover .admin-nav-icon {
  transform: scale(1.1);
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: fadeIn 0.35s ease both;
}

.manage-card {
  max-width: 720px;
  text-align: left;
}

.manage-card .hero-title,
.manage-card .hero-text {
  text-align: center;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.manage-empty {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  padding: 16px 0;
}

.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg-alt);
  animation: fadeInUp 0.35s var(--ease-out) both;
  transition: background 0.2s ease, transform 0.2s ease;
}

.manage-item:hover {
  background: rgba(240, 180, 41, 0.05);
  transform: translateX(2px);
}

.manage-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.manage-name-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(240, 180, 41, 0.08);
  border: none;
  outline: none;
  border-radius: 0;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: background 0.2s ease;
}

.manage-name-input:focus {
  background: rgba(240, 180, 41, 0.16);
}

.manage-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.manage-rename-btn,
.manage-replace-btn {
  display: block;
  text-align: center;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.manage-rename-btn:hover,
.manage-replace-btn:hover {
  transform: translateY(-2px);
}

.manage-rename-btn:active,
.manage-replace-btn:active {
  transform: translateY(0) scale(0.96);
}

@media (max-width: 760px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    flex-direction: row;
    flex: 0 0 auto;
    width: 100%;
  }
  .admin-nav-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .manage-item {
    flex-direction: column;
    align-items: stretch;
  }
  .manage-item-actions {
    flex-direction: row;
  }
  .manage-rename-btn,
  .manage-replace-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}