:root {
  --white: #f6fbff;
  --muted: rgba(231, 243, 255, 0.62);
  --glass: rgba(180, 205, 224, 0.27);
  --blue: #0a80e6;
  --blue-deep: #0651a7;
  --orange: #fb4b16;
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-synthesis-weight: auto;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 41%, rgba(255, 92, 27, 0.82) 0 9%, rgba(252, 82, 22, 0.47) 22%, transparent 54%),
    radial-gradient(circle at 22% 18%, rgba(15, 128, 219, 0.62) 0 14%, transparent 45%),
    linear-gradient(113deg, #061322 0%, #082641 38%, #1b2a36 56%, #6a2c18 100%);
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -5;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 13, 24, 0.76), transparent 43%, rgba(255, 80, 19, 0.16)),
    radial-gradient(circle at center, transparent 0 46%, rgba(0, 4, 10, 0.62) 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: screen;
}

.glow {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(72px);
  animation: glowMove 9s ease-in-out infinite alternate;
}

.glow-blue {
  top: 0;
  left: -2%;
  width: 44vw;
  height: 42vw;
  background: rgba(0, 112, 205, 0.62);
}

.glow-orange {
  right: -8%;
  bottom: -13%;
  width: 48vw;
  height: 45vw;
  background: rgba(255, 89, 24, 0.76);
  animation-delay: -3s;
}

.glow-soft {
  left: 27%;
  bottom: 3%;
  width: 30vw;
  height: 28vw;
  background: rgba(0, 155, 255, 0.2);
  animation-delay: -6s;
}

.page-shell {
  width: min(1340px, calc(100% - 18px));
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 44px;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 86px;
  padding-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 68px;
  min-width: 760px;
  height: 56px;
  padding: 0 24px;
  border-bottom: 2px solid rgba(122, 188, 234, 0.25);
  background: linear-gradient(180deg, rgba(44, 94, 128, 0.3), rgba(16, 56, 91, 0.06));
  box-shadow: 0 11px 26px rgba(3, 17, 30, 0.26);
}

.main-nav a,
.social-btn {
  color: rgba(244, 250, 255, 0.9);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(229, 244, 255, 0.35);
  transition: transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.main-nav a {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15px;
  transform: scaleX(1.025);
  transform-origin: center;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-2px) scaleX(1.025);
}

.socials {
  display: flex;
  gap: 22px;
}

.social-btn {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(111, 164, 201, 0.43);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 13px 30px rgba(0, 12, 24, 0.25);
  backdrop-filter: blur(15px);
}

.social-btn svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  stroke: none;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.28));
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 31px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

.social-btn:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 24px rgba(23, 144, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dashboard {
  padding-top: 36px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 56px 0;
}

.login-brand {
  position: absolute;
  top: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  filter: drop-shadow(0 10px 24px rgba(0, 13, 27, 0.35));
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0a8fff, #ff4d19);
  box-shadow: 0 0 28px rgba(19, 139, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 15px;
  font-weight: 900;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 18px;
  font-weight: 900;
}

.login-brand span {
  margin-top: 2px;
  color: rgba(236, 246, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.login-panel {
  position: relative;
  width: min(436px, calc(100vw - 28px));
  padding: 34px;
  border-radius: 12px;
  animation: loginIn 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-panel::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(22, 144, 255, 0.42), rgba(255, 91, 27, 0.36), transparent 62%);
  filter: blur(16px);
  opacity: 0.74;
}

.login-head {
  margin-bottom: 26px;
}

.login-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 128, 230, 0.28);
  box-shadow: inset 0 0 0 1px rgba(166, 215, 255, 0.14);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 900;
}

.login-head p {
  margin: 10px 0 0;
  color: rgba(232, 244, 255, 0.64);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.login-error {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 128, 89, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(202, 45, 15, 0.2);
  box-shadow: 0 0 20px rgba(255, 76, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin: 0 0 8px 2px;
  color: rgba(232, 244, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(232, 245, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 28, 47, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 12, 25, 0.16);
  backdrop-filter: blur(14px);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.input-shell:focus-within {
  border-color: rgba(52, 164, 255, 0.52);
  background: rgba(8, 39, 67, 0.48);
  box-shadow: 0 0 22px rgba(18, 147, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.input-shell .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 21px;
  color: rgba(255, 255, 255, 0.78);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.input-shell input::selection {
  background: rgba(22, 144, 255, 0.45);
}

.ghost-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 22px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 244, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.remember input {
  width: 15px;
  height: 15px;
  accent-color: #0a8fff;
}

.login-row a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.login-submit,
.discord-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.login-submit {
  gap: 9px;
  background: linear-gradient(180deg, #139aff, #0769c9);
  box-shadow: 0 0 0 1px rgba(95, 191, 255, 0.22), 0 14px 26px rgba(0, 43, 88, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.14);
}

.login-submit:hover,
.discord-login:hover {
  transform: translateY(-3px);
  filter: saturate(1.12);
}

.login-submit:hover {
  box-shadow: 0 0 30px rgba(18, 147, 255, 0.48), 0 14px 26px rgba(0, 43, 88, 0.32);
}

.login-submit .material-symbols-rounded {
  font-size: 20px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(232, 244, 255, 0.46);
  font-size: 11px;
  font-weight: 900;
}

.login-divider::before,
.login-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: rgba(232, 244, 255, 0.12);
}

.discord-login {
  gap: 10px;
  background: rgba(112, 137, 218, 0.32);
  box-shadow: inset 0 0 0 1px rgba(226, 234, 255, 0.12), 0 12px 24px rgba(0, 10, 28, 0.24);
}

.discord-login svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.login-note {
  margin: 17px 0 0;
  color: rgba(232, 244, 255, 0.42);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
}

.is-switching {
  animation: switchOut 0.26s ease both;
}

.glass {
  border: 1px solid rgba(232, 245, 255, 0.1);
  background: linear-gradient(100deg, rgba(171, 202, 221, 0.31), rgba(198, 215, 225, 0.19));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 38px rgba(4, 19, 31, 0.24);
  backdrop-filter: blur(17px);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px 170px 1fr auto;
  align-items: center;
  min-height: 180px;
  margin-left: 52px;
  padding: 0 36px 0 0;
  border-radius: var(--radius);
  animation: cardIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.level-badge {
  position: absolute;
  left: -90px;
  top: 25px;
  display: grid;
  width: 120px;
  height: 120px;
  place-content: center;
  border: 6px solid rgba(244, 87, 59, 0.43);
  border-radius: 50%;
  background: rgba(35, 91, 129, 0.32);
  box-shadow: 0 0 0 2px rgba(104, 167, 214, 0.16), 0 0 34px rgba(255, 82, 45, 0.23), inset 0 0 22px rgba(27, 133, 217, 0.2);
  text-align: center;
  backdrop-filter: blur(14px);
}

.level-badge strong {
  display: block;
  font-size: 41px;
  line-height: 0.92;
  font-weight: 900;
}

.level-badge span {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(244, 250, 255, 0.8);
}

.avatar {
  align-self: end;
  width: 168px;
  height: 180px;
  overflow: hidden;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.27));
}

.avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.avatar-fallback .material-symbols-rounded {
  font-size: 98px;
  color: rgba(255, 255, 255, 0.82);
}

.profile-text {
  padding-left: 34px;
}

.profile-text h1 {
  margin: 0 0 9px;
  display: inline-block;
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.1px;
  transform: scaleX(1.025);
  transform-origin: left center;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.18);
}

.profile-text p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05px;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.server-btn,
.logout-btn {
  position: relative;
  overflow: hidden;
  height: 54px;
  border: 0;
  border-radius: 6px;
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.server-btn {
  min-width: 214px;
  padding: 0 18px;
  background: linear-gradient(180deg, #0c96ff, #0869c7);
  box-shadow: 0 0 0 1px rgba(95, 191, 255, 0.22), 0 8px 18px rgba(0, 42, 86, 0.44), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(255, 102, 54, 0.98), rgba(218, 49, 13, 0.98));
  box-shadow: 0 0 0 1px rgba(255, 154, 106, 0.25), 0 8px 18px rgba(75, 17, 4, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.13);
  text-decoration: none;
}

.server-btn::after,
.logout-btn::after,
.side-btn::after,
.chat-btn::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 34%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.server-btn:hover,
.logout-btn:hover,
.side-btn:hover,
.chat-btn:hover {
  transform: translateY(-3px);
  filter: saturate(1.15);
}

.server-btn:hover {
  box-shadow: 0 0 30px rgba(18, 147, 255, 0.5), 0 12px 22px rgba(0, 42, 86, 0.42);
}

.logout-btn:hover {
  box-shadow: 0 0 26px rgba(255, 79, 29, 0.45), 0 12px 22px rgba(75, 17, 4, 0.34);
}

.server-btn:hover::after,
.logout-btn:hover::after,
.side-btn:hover::after,
.chat-btn:hover::after {
  opacity: 1;
}

.lower-grid {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 34px;
  margin-top: 37px;
  margin-left: 52px;
}

.sidebar {
  display: grid;
  gap: 17px;
  align-content: start;
}

.side-btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 196px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: rgba(245, 250, 255, 0.9);
  background: linear-gradient(180deg, rgba(9, 101, 195, 0.82), rgba(6, 67, 139, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 17, 35, 0.22);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.side-btn.active {
  background: linear-gradient(180deg, #ff5d24, #e9360c);
  box-shadow: 0 0 20px rgba(255, 78, 22, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.side-icon {
  flex: 0 0 43px;
  display: grid;
  width: 43px;
  height: 43px;
  margin-left: 12px;
  place-items: center;
  border-radius: 5px;
  background: rgba(112, 178, 231, 0.3);
}

.active .side-icon {
  background: rgba(255, 189, 150, 0.23);
}

.side-icon .material-symbols-rounded {
  font-size: 27px;
}

.side-icon .menu-svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 96px;
  row-gap: 28px;
  min-height: 277px;
  padding: 35px 64px 36px;
  border-radius: var(--radius);
  animation: cardIn 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rating-card {
  min-height: 277px;
  padding: 28px 34px 30px;
  border-radius: var(--radius);
  animation: cardIn 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.rating-head span {
  display: block;
  margin-bottom: 5px;
  color: rgba(220, 235, 247, 0.52);
  font-size: 12px;
  font-weight: 900;
}

.rating-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.rating-head .material-symbols-rounded {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: rgba(112, 178, 231, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 28px;
}

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

.rating-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid rgba(232, 245, 255, 0.08);
  border-radius: 7px;
  background: rgba(8, 40, 72, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rating-row.top-place {
  background: linear-gradient(90deg, rgba(255, 94, 28, 0.24), rgba(8, 98, 178, 0.24));
  box-shadow: 0 0 18px rgba(255, 87, 25, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rank-place {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.rank-user strong,
.rank-user span {
  display: block;
}

.rank-user strong {
  font-size: 14px;
  font-weight: 900;
}

.rank-user span {
  margin-top: 3px;
  color: rgba(232, 244, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
}

.rating-row b {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.empty-state {
  padding: 22px;
  border-radius: 8px;
  color: rgba(232, 244, 255, 0.72);
  background: rgba(8, 28, 47, 0.28);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.stat-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(220, 235, 247, 0.53);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08px;
}

.stat-item strong {
  display: block;
  color: #fff;
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0.1px;
  transform: scaleX(1.018);
  transform-origin: left center;
  text-shadow: 0 2px 13px rgba(255, 255, 255, 0.14);
}

.chat-btn {
  position: fixed;
  right: 25px;
  bottom: 26px;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, #168ff4, #0766be);
  box-shadow: 0 0 26px rgba(23, 139, 240, 0.52), 0 14px 34px rgba(0, 18, 38, 0.44);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulseChat 2.8s ease-in-out infinite;
}

.chat-btn .material-symbols-rounded {
  font-size: 31px;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes glowMove {
  from {
    transform: translate3d(-10px, -8px, 0) scale(0.98);
  }

  to {
    transform: translate3d(15px, 16px, 0) scale(1.04);
  }
}

@keyframes pulseChat {
  50% {
    box-shadow: 0 0 36px rgba(23, 139, 240, 0.72), 0 14px 34px rgba(0, 18, 38, 0.44);
  }
}

@keyframes loginIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

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

@keyframes switchOut {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@media (max-width: 1050px) {
  .page-shell {
    width: min(980px, calc(100% - 24px));
  }

  .topbar {
    gap: 18px;
  }

  .main-nav {
    min-width: 0;
    gap: 28px;
  }

  .profile-card,
  .lower-grid {
    margin-left: 58px;
  }

  .profile-card {
    grid-template-columns: 100px 145px 1fr;
    padding: 18px 24px 18px 0;
  }

  .profile-actions {
    grid-column: 3;
    justify-self: start;
    margin-top: 18px;
  }

  .server-btn,
  .logout-btn {
    height: 50px;
  }

  .stats-card {
    column-gap: 34px;
    padding-left: 38px;
    padding-right: 38px;
  }
}

@media (max-width: 780px) {
  body {
    background:
      radial-gradient(circle at 88% 28%, rgba(255, 91, 27, 0.7), transparent 42%),
      radial-gradient(circle at 12% 8%, rgba(27, 140, 221, 0.6), transparent 45%),
      linear-gradient(130deg, #061323, #0c2d49 48%, #652815);
  }

  .page-shell {
    width: min(560px, calc(100% - 24px));
    padding-bottom: 96px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: auto;
    padding-top: 12px;
  }

  .main-nav {
    justify-content: space-between;
    gap: 10px;
    height: auto;
    padding: 13px 10px;
    overflow-x: auto;
  }

  .main-nav a {
    font-size: 12px;
  }

  .socials {
    justify-content: center;
    gap: 12px;
  }

  .social-btn {
    width: 48px;
    height: 48px;
  }

  .dashboard {
    padding-top: 22px;
  }

  .login-screen {
    padding: 88px 0 34px;
    place-items: start center;
  }

  .login-brand {
    top: 18px;
    left: 18px;
  }

  .login-panel {
    padding: 26px 20px;
  }

  .login-head h1 {
    font-size: 25px;
  }

  .profile-card {
    grid-template-columns: 105px 1fr;
    min-height: 0;
    margin-left: 0;
    padding: 18px;
  }

  .level-badge {
    left: 8px;
    top: 18px;
    width: 80px;
    height: 80px;
    border-width: 4px;
  }

  .level-badge strong {
    font-size: 29px;
  }

  .level-badge span {
    margin-top: 5px;
    font-size: 9px;
  }

  .avatar {
    grid-row: 1 / span 2;
    width: 118px;
    height: 136px;
    margin-top: 48px;
    margin-left: 16px;
  }

  .profile-text {
    padding-left: 32px;
  }

  .profile-text h1 {
    font-size: 21px;
  }

  .profile-text p {
    font-size: 13px;
  }

  .profile-actions {
    grid-column: 2;
    width: 100%;
  }

  .server-btn,
  .logout-btn {
    min-width: 0;
    height: 48px;
    font-size: 12px;
  }

  .server-btn {
    flex: 1;
  }

  .lower-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
    margin-left: 0;
  }

  .sidebar {
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side-btn {
    justify-content: center;
    width: auto;
    min-width: 92px;
    height: 74px;
    padding: 0;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
    text-align: center;
  }

  .side-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    margin-left: 0;
  }

  .side-icon .material-symbols-rounded {
    font-size: 21px;
  }

  .side-icon .menu-svg {
    width: 21px;
    height: 21px;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 18px;
    min-height: 0;
    padding: 26px 22px;
  }

  .rating-card {
    padding: 22px 16px;
  }

  .rating-head h2 {
    font-size: 20px;
  }

  .rating-row {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .rating-row b {
    grid-column: 2;
    text-align: left;
  }

  .stat-item span {
    font-size: 12px;
  }

  .stat-item strong {
    font-size: 20px;
  }

  .chat-btn {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 430px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .level-badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .avatar {
    grid-row: auto;
    margin: 76px auto 0;
  }

  .profile-text {
    padding-left: 0;
  }

  .profile-actions {
    grid-column: auto;
    justify-content: center;
  }

  .server-btn {
    flex: 1;
  }

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