:root {
  --bg: #08080a;
  --surface: #111114;
  --surface-2: #18181c;
  --border: rgba(255, 255, 255, .08);
  --text: #f5f5f6;
  --muted: #9898a3;
  --red: #ef3340;
  --red-dark: #b91f2c;
  --red-soft: rgba(239, 51, 64, .12);
  --green: #43d17a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

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

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .13;
}

.ambient-one {
  width: 480px;
  height: 480px;
  background: var(--red);
  top: -280px;
  right: 8%;
}

.ambient-two {
  width: 360px;
  height: 360px;
  background: #75101b;
  bottom: -250px;
  left: -100px;
}

.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 10, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font: 700 1rem "Space Grotesk";
}

.brand-copy small {
  color: var(--muted);
  font-size: .68rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

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

.site-nav a {
  color: #b7b7c0;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 9px;
  transition: .2s ease;
}

.site-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, .06);
}

.site-nav .nav-logout {
  color: #ff7079;
  margin-left: 5px;
  background: var(--red-soft);
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.private-badge i,
.login-label i,
.secure-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  flex: 1;
  position: relative;
  z-index: 1;
}

.page-heading {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 38px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: #ff6973;
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.03em;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  line-height: 1;
  margin: 0;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
}

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

.user-avatar {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: #ff6973;
  font-weight: 700;
}

.user-avatar-image,
.user-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-fallback {
  display: grid;
  place-items: center;
}

.user-avatar-decoration {
  position: absolute;
  z-index: 2;
  width: 126%;
  height: 126%;
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: contain;
}

.user-chip-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.user-chip small {
  color: var(--muted);
  font-size: .72rem;
}

.user-chip strong {
  font-size: .88rem;
}

.user-role {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 150px;
  margin-top: 3px;
  color: var(--role-color, var(--muted));
  font-size: .7rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--role-color, var(--muted));
  box-shadow: 0 0 7px color-mix(in srgb, var(--role-color, var(--muted)) 65%, transparent);
}

.page-content {
  padding: 38px 0 70px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

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

.panel,
.card {
  background: linear-gradient(145deg, rgba(24, 24, 28, .96), rgba(15, 15, 18, .96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.panel-head p,
.card p {
  color: var(--muted);
  margin: 5px 0 0;
}

.panel-kicker {
  color: var(--red);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.stat-card strong {
  display: block;
  font: 700 2rem "Space Grotesk";
  margin-top: 6px;
}

.controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  color: white;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #f33b48, #c8212e);
  box-shadow: 0 8px 22px rgba(239, 51, 64, .18);
}

.button-secondary,
.button-small {
  background: rgba(255, 255, 255, .055);
  border-color: var(--border);
}

.button-danger {
  color: #ff9298;
  background: rgba(239, 51, 64, .1);
  border-color: rgba(239, 51, 64, .2);
}

.button-small {
  min-height: 34px;
  padding: 6px 11px;
  font-size: .78rem;
}

.panel-table {
  padding: 0;
  overflow: hidden;
}

.panel-table .panel-head {
  padding: 22px 24px 0;
}

.table-scroll {
  overflow-x: auto;
}

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

th,
td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

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

td {
  font-size: .9rem;
}

tbody tr {
  transition: background .15s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, .025);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border-radius: 9px;
  font-weight: 700;
}

.inline-form {
  display: inline-block;
  margin: 0 0 0 5px;
}

.summary-list,
.mini-list,
.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-list {
  counter-reset: rank;
}

.mini-list li {
  counter-increment: rank;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mini-list li:last-child {
  border: 0;
}

.mini-list li::before {
  content: counter(rank);
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red-soft);
  color: #ff7780;
  font-size: .75rem;
  font-weight: 700;
}

.mini-list li span {
  color: var(--muted);
  margin-left: auto;
}

.action-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.action-list a {
  display: block;
  padding: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .025);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: .2s;
}

.action-list a:hover {
  border-color: rgba(239, 51, 64, .4);
  background: var(--red-soft);
}

.panel-form {
  max-width: 780px;
  margin: 0 auto 20px;
}

.panel-form form {
  display: grid;
  gap: 7px;
}

.panel-form label {
  color: #d5d5da;
  font-size: .82rem;
  font-weight: 600;
  margin-top: 7px;
}

.panel-form input,
.panel-form textarea,
.panel-form select {
  width: 100%;
  color: var(--text);
  background: #0d0d10;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  outline: none;
  resize: vertical;
  transition: border .2s, box-shadow .2s;
}

.panel-form input:focus,
.panel-form textarea:focus,
.panel-form select:focus {
  border-color: rgba(239, 51, 64, .6);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.card-center {
  width: min(500px, 100%);
  margin: 15px auto;
  padding: 44px;
  text-align: center;
}

.login-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--red-soft);
  color: #ff606a;
  font: 700 1.7rem "Space Grotesk";
  border: 1px solid rgba(239, 51, 64, .18);
}

.card-center h2 {
  font-size: 1.55rem;
}

.card-center .button {
  margin-top: 14px;
}

.empty-state {
  color: var(--muted);
  padding: 34px 20px;
  text-align: center;
}

.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin: auto auto 0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  color: #74747e;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a5a5ad;
}

.footer-brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.auth-page {
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-page .site-header {
  position: relative;
  background: rgba(8, 8, 10, .65);
}

.auth-page .page-shell {
  display: flex;
  align-items: center;
}

.auth-page .page-content {
  width: 100%;
  padding: 70px 0;
}

.auth-page .site-footer {
  border-top-color: rgba(255, 255, 255, .06);
}

.login-layout {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr);
  align-items: center;
  gap: clamp(55px, 9vw, 130px);
}

.login-intro {
  position: relative;
}

.login-intro::before {
  content: "R";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -75px;
  transform: translateY(-54%);
  color: rgba(255, 255, 255, .018);
  font: 700 29rem/1 "Space Grotesk";
}

.login-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b6b6be;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .025);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.login-intro h1 {
  max-width: 740px;
  margin: 26px 0 24px;
  font-size: clamp(3.4rem, 6.2vw, 6.4rem);
  line-height: .93;
}

.login-intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px #fa5360;
  font-style: normal;
}

.login-intro>p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-row {
  display: flex;
  gap: 25px;
  margin-top: 42px;
  color: #c9c9cf;
  font-size: .78rem;
  font-weight: 600;
}

.feature-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-row b {
  color: var(--red);
  font-size: .65rem;
}

.login-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(25, 25, 30, .96), rgba(12, 12, 15, .98));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .55);
}

.login-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -120px;
  right: -70px;
  border-radius: 50%;
  background: var(--red);
  filter: blur(70px);
  opacity: .16;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discord-symbol {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: white;
  background: #5865f2;
  border-radius: 15px;
  font-size: 1.8rem;
  font-weight: 700;
  transform: rotate(-12deg);
}

.secure-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b8b94;
  font-size: .72rem;
}

.secure-copy i {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.login-card h2 {
  margin: 7px 0 8px;
  font-size: 2.15rem;
}

.login-card p {
  max-width: 360px;
  color: var(--muted);
  margin: 0;
}

.discord-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 10px 16px;
  color: white;
  background: #5865f2;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(88, 101, 242, .2);
  transition: transform .2s, background .2s;
}

.discord-button:hover {
  background: #6975f5;
  transform: translateY(-2px);
}

.discord-button span {
  padding: 6px 9px;
  background: rgba(0, 0, 0, .15);
  border-radius: 7px;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.discord-button strong {
  font-size: .9rem;
}

.discord-button b {
  font-size: 1.2rem;
}

.login-help {
  color: #666670;
  text-align: center;
  font-size: .7rem;
}

.denied-layout {
  min-height: 570px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
}

.denied-code {
  min-height: 390px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(239, 51, 64, .18);
  border-radius: 28px;
  background: radial-gradient(circle at center, rgba(239, 51, 64, .15), transparent 65%), #0d0d10;
  box-shadow: var(--shadow);
}

.denied-code::before,
.denied-code::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 51, 64, .4), transparent);
  transform: rotate(-35deg);
}

.denied-code::after {
  transform: rotate(35deg);
}

.denied-code span {
  color: #ff737c;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .35em;
}

.denied-code strong {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 92, 102, .75);
  font: 700 clamp(6.5rem, 12vw, 10rem)/1 "Space Grotesk";
  letter-spacing: -.09em;
}

.denied-content {
  max-width: 650px;
}

.denied-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #ff6872;
  background: var(--red-soft);
  border: 1px solid rgba(239, 51, 64, .25);
  border-radius: 14px;
  font-size: 1.7rem;
}

.denied-content h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  line-height: .98;
}

.denied-content>p {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.05rem;
}

.denied-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.denied-actions>span {
  max-width: 230px;
  color: #6f6f78;
  font-size: .72rem;
}

@media (max-width: 800px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-toggle-label {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    width: 18px;
    height: 2px;
    background: #ddd;
    border-radius: 2px;
    transition: .2s;
  }

  .site-nav {
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 8, 10, .98);
    border-bottom: 1px solid var(--border);
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-toggle:checked~.site-nav {
    display: flex;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 32px, 1240px);
  }

  .page-heading {
    min-height: 150px;
    padding: 35px 0 28px;
  }

  .user-chip {
    display: none;
  }

  .page-content {
    padding: 26px 0 50px;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .card {
    padding: 19px;
    border-radius: 15px;
  }

  .panel-table {
    padding: 0;
  }

  th,
  td {
    padding: 13px 15px;
    white-space: nowrap;
  }

  .action-list {
    grid-template-columns: 1fr;
  }

  .card-center {
    padding: 30px 20px;
  }

  .controls .button {
    width: 100%;
  }

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

  .form-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .auth-page .page-content {
    padding: 45px 0;
  }

  .login-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .login-intro {
    text-align: center;
  }

  .login-intro h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .login-intro>p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 28px;
  }

  .login-card {
    min-height: 410px;
    padding: 25px;
    border-radius: 20px;
  }

  .private-badge {
    font-size: .65rem;
  }

  .denied-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .denied-code {
    min-height: 220px;
  }

  .denied-code strong {
    font-size: 7rem;
  }

  .denied-content {
    text-align: center;
  }

  .denied-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .denied-content h1 {
    font-size: 2.8rem;
  }

  .denied-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand-copy small {
    display: none;
  }

  .login-intro h1 {
    font-size: 2.9rem;
  }

  .login-intro>p {
    font-size: .92rem;
  }

  .feature-row {
    display: none;
  }

  .login-card {
    min-height: 390px;
  }
}