:root {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
  --bg: #06070b;
  --bg-soft: #0b0d14;
  --panel: rgba(13, 14, 20, 0.84);
  --panel-strong: rgba(17, 19, 28, 0.9);
  --text: #f7f9ff;
  --muted: #b7bccd;
  --line: rgba(255, 255, 255, 0.15);
  --danger: #8a1538;
  --danger-soft: #b02a4e;
  --link: #b02a4e;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0d1120 0%, var(--bg) 42%, #040509 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  background: rgba(7, 8, 12, 0.72);
}

main {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7, 8, 12, 0.68);
  border-bottom: 1px solid var(--line);
}

.topbar-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

button, input, select, textarea {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

button {
  cursor: pointer;
  background: linear-gradient(90deg, var(--danger), var(--danger-soft));
  border: none;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  padding: 0.62rem 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary {
  background: linear-gradient(90deg, var(--danger), var(--danger-soft));
  border: none;
  box-shadow: 0 8px 24px rgba(138, 21, 56, 0.36);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(138, 21, 56, 0.45);
}

a {
  color: var(--link);
}

.grid {
  display: grid;
  gap: 0.75rem;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1rem 0 1.4rem;
  font-size: 0.9rem;
}


.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0 4rem;
}

.hero section {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #e2b8c4;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.hero-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-logo {
  width: clamp(56px, 8vw, 96px);
  height: clamp(56px, 8vw, 96px);
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e8cad3 54%, #b55672 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
  animation: titleShine 4s ease-in-out infinite;
}

.hero p {
  max-width: 46ch;
  margin: 1rem auto 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero .subline {
  margin-top: 0;
  margin-bottom: 1.6rem;
  color: #e2c0cb;
  font-size: 0.99rem;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  animation: pulseButton 2.4s ease-in-out infinite;
}

.info-main {
  padding: 2.3rem 0 2.5rem;
}

.page-hero {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
}

.section-title-sm {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

.section-gap-top {
  margin-top: 1.7rem;
  margin-bottom: 0.4rem;
}

.lead {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}

.stats-row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-chip {
  background: linear-gradient(180deg, rgba(17, 19, 28, 0.84), rgba(12, 14, 22, 0.92));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.stat-chip b {
  display: block;
  color: #e3bdc9;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #b55672;
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.55;
}

.info-list {
  margin: 0;
  padding-left: 1.15rem;
}

.timeline {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a63c5c, transparent);
}

.step b {
  color: #b85f79;
  display: block;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(22px) scale(1.06);
  }
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle at top left, #17090f 0%, var(--bg) 40%, #040509 100%);
}

.auth-box {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(13, 14, 22, 0.92), rgba(8, 9, 14, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem 2rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  position: relative;
  overflow: hidden;
}

.auth-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--danger), var(--danger-soft), var(--danger));
  opacity: 0.8;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}

.auth-brand h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e8cad3 54%, #b55672 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(17, 19, 28, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.4rem;
  gap: 0.3rem;
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 0.68rem 0.5rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s ease;
}

.auth-tab.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(138, 21, 56, 0.92), rgba(176, 42, 78, 0.92));
  box-shadow: 0 8px 20px rgba(138, 21, 56, 0.38);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input {
  width: 100%;
  height: 46px;
  background: rgba(17, 19, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  padding: 0 1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(176, 42, 78, 0.6);
  box-shadow: 0 0 0 3px rgba(176, 42, 78, 0.14);
}

.auth-button {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, var(--danger), var(--danger-soft));
  border: none;
  border-radius: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0.6rem;
  box-shadow: 0 10px 28px rgba(138, 21, 56, 0.4);
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(138, 21, 56, 0.5);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-footer a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.status-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  min-height: 0;
  display: none;
}

.status-message.active {
  display: block;
}

.status-message.error {
  background: rgba(138, 21, 56, 0.18);
  border: 1px solid rgba(138, 21, 56, 0.4);
  color: #f0bccb;
}

.status-message.success {
  background: rgba(74, 222, 128, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.oauth-divider span {
  flex: 1;
}

.oauth-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(17, 19, 28, 0.8);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.oauth-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(17, 19, 28, 0.95);
  transform: translateY(-1px);
}

.oauth-button.discord {
  color: #5865f2;
}

.oauth-button.google {
  color: var(--danger-soft);
}

@media (max-width: 540px) {
  .auth-box {
    padding: 1.8rem 1.4rem;
  }

  .oauth-buttons {
    grid-template-columns: 1fr;
  }
}

@keyframes floatGlowAlt {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

@keyframes titleShine {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.14);
  }
}

@keyframes pulseButton {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@media (min-width: 768px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-content {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .hero {
    min-height: calc(100vh - 112px);
    padding: 2rem 0 2.5rem;
  }

  .timeline,
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.panel-main {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.panel-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.panel-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.panel-subtitle {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-card {
  margin-bottom: 0;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stat-value {
  margin: 0.5rem 0 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.panel-grid {
  display: grid;
  gap: 0.9rem;
}

.panel-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card {
  margin-bottom: 0;
}

.panel-span-2 {
  grid-column: span 2;
}

.table-wrap {
  overflow: auto;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.panel-table th,
.panel-table td {
  text-align: left;
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.panel-table th {
  color: var(--muted);
  font-weight: 700;
}

.panel-table td {
  color: var(--text);
}

.table-empty {
  color: var(--muted);
}

.form-grid {
  gap: 0.65rem;
}

.message {
  margin-top: 1rem;
  color: var(--muted);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  text-transform: lowercase;
}

.role-admin {
  background: var(--panel-strong);
}

.role-user {
  background: var(--panel);
}

.role-banned {
  background: var(--panel-strong);
  border-color: var(--danger);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.profile-name {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.profile-meta {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-extra-info {
  margin-top: 1rem;
}

.profile-table-spacer {
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-grid.two-col {
    grid-template-columns: 1fr;
  }

  .panel-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
