@font-face {
  font-family: "Starlingers";
  src: url("/fonts/StarlingersDemoRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #f5f5f5;
  --secondary: #191919;
  --tertiary: #2a2a2a;
  --neutral: #d8d8d8;
  --surface: #111111;
  --page: #080808;
  --card: #101010;
  --pill: #151515;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0);
  --ok: #5fb3ff;
  --accent: #4aa3ff;
  --accent-soft: #1f6feb;
  --strong-action-text: #111111;
  --toast-bg: rgba(245, 245, 245, 0.94);
  --shadow: rgba(0, 0, 0, 0.35) 0 1px 2px 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--neutral);
  font-family: Inter, "Inter Fallback", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: background 160ms ease, color 160ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(74, 163, 255, 0.18), transparent 62%),
    radial-gradient(680px 420px at 16% 72%, rgba(245, 245, 245, 0.055), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%);
}

body::after {
  backdrop-filter: blur(42px);
  background:
    radial-gradient(760px 460px at 82% 32%, rgba(31, 111, 235, 0.12), transparent 70%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.24), transparent 42%, rgba(8, 8, 8, 0.36));
}

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

button,
input {
  font: inherit;
}

.nav {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.aegis-logo-text {
  display: inline-block;
  overflow: visible;
  font-family: "Starlingers", Inter, system-ui, sans-serif;
  font-weight: 400;
  color: #0058FF;
  background: linear-gradient(90deg, #ffffff 0%, #0058FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
  line-height: 1.25;
  padding: 0.04em 0.04em 0.08em;
}

.aegis-word::before {
  content: "";
  display: inline-block;
  width: 0.22em;
  height: 1px;
}

.brand .aegis-logo-text {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  transform: translateY(0);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111111;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9999px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 9999px;
  color: var(--muted);
}

.nav-links a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-button,
.button {
  min-width: 146px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}

.login-button,
.button.secondary {
  background: var(--secondary);
  color: var(--primary);
}

.user-chip {
  min-height: 36px;
  max-width: 220px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.user-chip:hover {
  border-color: rgba(74, 163, 255, 0.42);
}

.user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  object-fit: cover;
  background: #111111;
}

.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease;
}

.balance-chip:hover,
.balance-chip:focus-visible {
  background: var(--tertiary);
  outline: 0;
  transform: translateY(-1px);
}

.balance-chip span {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.balance-chip strong {
  color: var(--primary);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.balance-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
}

.balance-modal.show {
  display: grid;
}

.balance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.balance-modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.balance-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.balance-modal-head {
  display: grid;
  gap: 8px;
  padding-right: 42px;
}

.balance-modal-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}

.balance-modal-head p {
  max-width: 410px;
}

.topup-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.topup-field > span {
  color: var(--muted);
  font-size: 13px;
}

.topup-field > div {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--secondary);
}

.topup-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--primary);
  font-size: 24px;
  line-height: 30px;
  font-weight: 500;
}

.topup-field strong {
  color: var(--muted);
  font-size: 18px;
}

.topup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.topup-presets button {
  border: 0;
  border-radius: 9999px;
  padding: 8px 12px;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.payment-method-card {
  min-height: 176px;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  background: var(--secondary);
  color: var(--primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.payment-method-card:hover,
.payment-method-card.is-selected {
  background: var(--tertiary);
  transform: translateY(-2px);
}

.payment-method-art {
  position: relative;
  display: block;
  height: 88px;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sbp-art {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(135deg, #0f1722 0%, #17283a 55%, #0f1116 100%);
}

.sbp-art i {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  transform: rotate(45deg);
}

.sbp-art i:nth-child(1) {
  left: 30px;
  top: 25px;
  background: #f7f9fb;
}

.sbp-art i:nth-child(2) {
  left: 55px;
  top: 25px;
  background: #4aa3ff;
  opacity: 0.9;
}

.sbp-art i:nth-child(3) {
  left: 80px;
  top: 25px;
  background: #dfe7ef;
  opacity: 0.7;
}

.sbp-art::after {
  content: "SBP";
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.card-art {
  background:
    radial-gradient(circle at 16% 15%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #1c2028 0%, #303640 48%, #16191f 100%);
}

.card-art i:first-child {
  position: absolute;
  left: 20px;
  top: 18px;
  width: 124px;
  height: 54px;
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 36%),
    #f4f6f8;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

.card-art i:last-child {
  position: absolute;
  left: 34px;
  top: 42px;
  width: 78px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.7);
}

.card-art::after {
  content: "CARD";
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.payment-method-card strong,
.payment-method-card small {
  display: block;
}

.payment-method-card strong {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.payment-method-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.topup-submit {
  width: 100%;
  margin-top: 16px;
}

.button.primary {
  background: var(--primary);
  color: var(--strong-action-text);
}

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 96px 0 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
  padding-left: 12px;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--muted);
  background: var(--pill);
  font-size: 13px;
}

.eyebrow {
  min-height: 24px;
  padding: 2px 8px;
}

h1,
h2 {
  color: var(--primary);
  font-weight: 500;
  margin: 0;
}

h1 {
  max-width: 920px;
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.22;
  letter-spacing: 0.9px;
  overflow: visible;
  white-space: nowrap;
}

.hero h1 .aegis-word {
  line-height: 1.45;
  padding: 0.18em 0.06em 0.12em 0;
  transform: translateY(0.08em);
}

h2 {
  font-size: 28px;
  line-height: 36px;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  max-width: 560px;
  margin-top: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.status-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.5fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.status-strip > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-strip > div:last-child {
  border-right: 0;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.copy-button {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}

.section {
  padding: 64px 0 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product,
.card,
.profile-card,
.mode-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.product {
  display: flex;
  min-height: 310px;
  flex-direction: column;
}

.product.featured-supporter {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(0, 88, 255, 0.2), rgba(255, 255, 255, 0.035) 42%, rgba(16, 16, 16, 0.96)),
    var(--card);
}

.product.featured-supporter::after {
  content: "FOUNDERS DROP";
  position: absolute;
  top: 18px;
  right: -34px;
  width: 150px;
  padding: 5px 0;
  transform: rotate(34deg);
  background: linear-gradient(90deg, #ffffff, #0058FF);
  color: #05070c;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.product.featured-supporter .product-icon {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 88, 255, 0.44));
}

.product.featured-supporter h3 {
  font-size: 26px;
  line-height: 32px;
}

.product.featured-supporter .price {
  color: #ffffff;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--primary);
}

.product-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.product h3 {
  margin: 22px 0 4px;
  color: var(--primary);
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
}

.price {
  margin-top: 14px;
  color: var(--primary);
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.perks {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.perks li {
  color: var(--muted);
}

.perks li::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 9999px;
  background: var(--ok);
  vertical-align: middle;
}

.product .button {
  margin-top: auto;
  width: 100%;
}

.product .button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.profile-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.profile-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #111111;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.stats-grid div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.stats-grid span,
.table-row span {
  color: var(--muted);
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
}

.trend-badge {
  display: inline-flex;
  margin-top: 8px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.trend-badge.up {
  color: #8fd0ff;
  background: rgba(74, 163, 255, 0.12);
}

.trend-badge.down {
  color: #ff9b9b;
  background: rgba(255, 92, 92, 0.12);
}

.trend-badge.neutral {
  color: var(--muted);
  background: var(--pill);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.activity-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.activity-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.activity-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.profile-business-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px;
  margin-top: 8px;
}

.rank-overview,
.hours-overview,
.profile-chart {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.82);
}

.rank-overview {
  min-height: 122px;
  padding: 16px;
}

.rank-overview span,
.hours-overview span,
.chart-heading span,
.chart-heading small {
  color: var(--muted);
}

.rank-overview strong {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 44px;
  line-height: 48px;
  font-weight: 500;
}

.rank-overview small {
  display: inline-flex;
  margin-top: 10px;
  color: #8fd0ff;
}

.hours-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 122px;
  overflow: hidden;
}

.hours-overview > div {
  padding: 16px;
}

.hours-overview > div:first-child {
  border-right: 1px solid var(--line);
}

.hours-overview strong {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 30px;
  line-height: 36px;
  font-weight: 500;
}

.profile-chart {
  margin-top: 8px;
  padding: 16px;
}

.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-heading span {
  color: var(--primary);
  font-weight: 500;
}

.chart-bars {
  display: grid;
  gap: 12px;
}

.chart-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.chart-row-top strong {
  color: var(--primary);
  font-weight: 500;
}

.chart-track {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), #f5f5f5);
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.55fr 0.5fr 0.5fr 0.55fr 0.6fr 0.6fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.table-row.head {
  background: var(--pill);
}

.table-row strong {
  color: var(--primary);
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 64px;
}

.card {
  min-height: 190px;
}

.card h2 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 30px;
}

.footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  pointer-events: none;
  min-width: 260px;
  max-width: calc(100% - 32px);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--strong-action-text);
  text-align: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    gap: 28px;
    padding-top: 72px;
    align-items: center;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

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

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .nav-actions {
    margin-left: auto;
  }

  .status-strip,
  .product-grid,
  .stats-grid,
  .activity-grid,
  .profile-business-row,
  .profile-section,
  .split {
    grid-template-columns: 1fr;
  }

  .vanity-profile-card,
  .vanity-profile-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .vanity-profile-form {
    display: grid;
  }

  .vanity-profile-form input {
    width: 100%;
  }

  .admin-link-columns,
  .profile-settings-actions {
    grid-template-columns: 1fr;
  }

  .profile-settings-actions,
  .admin-link-actions {
    flex-direction: column;
  }

  .profile-hero-body {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-hero-views {
    position: static;
    grid-column: 1 / -1;
    width: fit-content;
    text-align: left;
  }

  .product.featured-supporter {
    grid-column: auto;
  }

  .status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  main,
  .nav,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 440px;
    padding: 72px 0 56px;
  }

  h1 {
    font-size: 40px;
    line-height: 42px;
    white-space: normal;
  }

  .profile-hero-banner {
    height: 150px;
  }

  .profile-hero-body {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

  .profile-hero-avatar {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .profile-hero-name-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-right: 0;
  }

  .profile-hero-main p {
    white-space: normal;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .login-button,
  .button {
    min-width: 132px;
  }

  .nav-actions {
    width: 100%;
  }

  .login-button {
    flex: 1;
  }

  .user-chip {
    flex: 1;
    max-width: none;
    justify-content: center;
  }

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

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

  .hours-overview {
    grid-template-columns: 1fr;
  }

  .hours-overview > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-row {
    grid-template-columns: 1.2fr 0.45fr 0.45fr 0.5fr 0.55fr 0.55fr;
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }

  .footer {
    flex-direction: column;
  }
}

.profile-main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 80px));
  margin: 0 auto;
}

.player-profile-page {
  --profile-panel: rgba(29, 39, 50, 0.96);
  --profile-panel-2: rgba(36, 47, 59, 0.94);
  --profile-panel-3: rgba(41, 54, 68, 0.92);
  --profile-border: rgba(129, 153, 184, 0.22);
  --profile-text: #f4f6f8;
  --profile-soft: #929eac;
  --profile-muted: #6f7b89;
  --profile-blue: #1677ff;
  --profile-blue-light: #5fb3ff;
  --profile-orange: #ff7a00;
  position: relative;
  margin: 46px auto 72px;
  color: var(--profile-text);
}

.rust-profile-shell {
  position: relative;
}

.rust-profile-panel {
  position: relative;
  min-height: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

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

.profile-back-button,
.profile-track-button,
.profile-icon-button,
.profile-history-button {
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
}

.profile-back-button,
.profile-track-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  border-radius: 15px;
  font-weight: 600;
}

.profile-back-button {
  width: 135px;
  border: 1px solid var(--profile-border);
  background: rgba(14, 22, 31, 0.72);
  color: var(--profile-text);
}

.profile-track-button {
  width: 200px;
  background: #f4f6f8;
  color: #0b1724;
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.08);
}

.profile-back-button:hover,
.profile-track-button:hover,
.profile-icon-button:hover,
.profile-history-button:hover {
  transform: translateY(-2px);
}

.profile-back-button:hover {
  background: rgba(22, 119, 255, 0.14);
  border-color: rgba(95, 179, 255, 0.35);
}

.profile-track-button:hover {
  background: #ffffff;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

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

.profile-avatar-large {
  width: 220px;
  height: 166px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  background: #121a24;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.profile-identity h1 {
  margin: 0;
  color: var(--profile-text);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.profile-identity p {
  margin: 4px 0 0;
  color: var(--profile-muted);
  font-size: 13px;
}

.profile-quick-actions {
  display: flex;
  gap: 12px;
}

.profile-icon-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: rgba(36, 47, 59, 0.82);
  color: var(--profile-text);
}

.profile-icon-button svg,
.profile-history-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.profile-history-button {
  width: 220px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--profile-border);
  border-radius: 14px;
  background: rgba(36, 47, 59, 0.82);
  color: var(--profile-text);
  cursor: pointer;
}

.profile-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.profile-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.profile-hero-banner {
  height: 190px;
  background:
    radial-gradient(520px 180px at 18% 24%, rgba(0, 88, 255, 0.28), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 88, 255, 0.1) 36%, rgba(16, 16, 16, 0.94));
  background-position: center;
  background-size: cover;
}

.profile-hero-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 18px 18px;
  margin-top: -42px;
}

.profile-hero-avatar {
  width: 92px;
  height: 92px;
  border: 4px solid var(--card);
  border-radius: 24px;
  object-fit: cover;
  background: var(--secondary);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.profile-hero-main {
  min-width: 0;
  padding-top: 42px;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 144px;
}

.profile-hero-name-row h1 {
  margin: 0;
  overflow: hidden;
  color: var(--primary);
  font-family: Inter, "Inter Fallback", system-ui, sans-serif;
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.early-supporter-badge {
  flex: 0 0 auto;
  transform: translateY(0);
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(0, 88, 255, 0.34));
  color: #dbe7ff;
  font-size: 12px;
  line-height: 16px;
}

.profile-edit-button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.085);
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.profile-edit-button:hover {
  transform: translateY(-1px);
  background: rgba(0, 88, 255, 0.28);
}

.profile-hero-link {
  display: inline-flex;
  margin-top: 4px;
  color: #8fb3ff;
  font-size: 13px;
}

.profile-hero-main p {
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.profile-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.profile-role-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 88, 255, 0.24), rgba(255, 255, 255, 0.065));
  color: #dbe7ff;
  font-size: 12px;
  line-height: 16px;
}

.profile-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbe7ff;
  font-size: 12px;
  line-height: 16px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.profile-social-links a:hover {
  transform: translateY(-1px);
  background: rgba(0, 88, 255, 0.18);
}

.profile-social-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.profile-social-link.is-tiktok {
  color: #ffffff;
}

.profile-social-link.is-telegram {
  color: #44a7ff;
}

.profile-social-link.is-discord {
  color: #8ea1ff;
}

.profile-music-player {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  min-height: 56px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(170, 191, 231, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(0, 88, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.profile-music-cover,
.profile-music-stop {
  position: relative;
  z-index: 2;
  border: 0;
  cursor: pointer;
  color: var(--primary);
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.profile-music-cover {
  min-width: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  text-align: left;
}

.profile-music-cover:hover,
.profile-music-stop:hover {
  transform: translateY(-1px);
}

.profile-music-play {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #0058ff);
  color: #07101f;
  font-size: 13px;
}

.profile-music-cover strong,
.profile-music-cover small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-music-cover strong {
  font-size: 14px;
  line-height: 18px;
}

.profile-music-cover small {
  color: rgba(244, 246, 255, 0.72);
  font-size: 11px;
  line-height: 15px;
}

.profile-music-player audio {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-music-stop {
  min-height: 38px;
  margin-right: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe7ff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
}

.profile-music-equalizer {
  position: absolute;
  inset: 6px 78px 6px 64px;
  z-index: 1;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 160ms ease;
}

.profile-music-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-music-player.is-playing .profile-music-stop {
  background: rgba(0, 88, 255, 0.18);
  opacity: 1;
  pointer-events: auto;
}

.profile-music-player.is-playing .profile-music-equalizer {
  opacity: 1;
}

.profile-hero-views {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 116px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(25, 25, 25, 0.92);
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-hero-views strong,
.profile-hero-views span {
  display: block;
}

.profile-hero-views strong {
  color: var(--primary);
  font-size: 22px;
  line-height: 26px;
  font-weight: 500;
}

.profile-hero-views span {
  color: var(--muted);
  font-size: 12px;
}

.profile-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  place-items: center;
  padding: 20px;
}

.profile-settings-modal.show {
  display: grid;
}

.profile-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(12px);
}

.profile-settings-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 40px));
  overflow: auto;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.profile-settings-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.profile-settings-head {
  display: grid;
  gap: 5px;
  padding-right: 44px;
  margin-bottom: 16px;
}

.profile-settings-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: 26px;
  line-height: 32px;
  font-weight: 500;
}

.profile-settings-head strong {
  overflow: hidden;
  color: var(--primary);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-settings-head p {
  color: var(--muted);
  font-size: 13px;
}

.vanity-profile-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.vanity-profile-card strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--primary);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vanity-profile-card p {
  max-width: 560px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.profile-mini-label {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.vanity-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.vanity-profile-form label {
  display: grid;
  gap: 6px;
}

.vanity-profile-form label span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.vanity-profile-form input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  outline: 0;
  background: var(--secondary);
  color: var(--primary);
}

.vanity-profile-form input[type="file"] {
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
}

.banner-upload-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
}

.vanity-profile-form button {
  min-width: 0;
}

.profile-settings-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.profile-settings-actions .button {
  min-width: 0;
  flex: 1;
}

.profile-settings-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-link-grid {
  display: grid;
  gap: 14px;
}

.admin-link-card,
.admin-link-empty {
  padding: 18px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.admin-link-head strong,
.admin-link-head span,
.admin-link-head small {
  display: block;
}

.admin-link-head strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.admin-link-head span,
.admin-link-head small,
.admin-link-empty {
  color: var(--muted);
}

.admin-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-link-list {
  display: grid;
  gap: 6px;
  min-height: 76px;
  margin-top: 7px;
  padding: 12px;
  border-radius: 12px;
  background: var(--secondary);
}

.admin-link-list a,
.admin-link-list span {
  overflow: hidden;
  color: var(--primary);
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.vanity-profile-form input:focus {
  box-shadow: 0 0 0 2px rgba(0, 88, 255, 0.35);
}

.vanity-profile-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.player-profile-page .profile-section-title {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: 0;
}

.player-profile-page .profile-section-title::before {
  content: none;
}

.general-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.rust-stat-card {
  position: relative;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rust-stat-card::before {
  content: none;
}

.rust-stat-card strong {
  display: block;
  overflow: hidden;
  color: var(--primary);
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rust-stat-card.is-date {
  min-height: 82px;
}

.rust-stat-card.is-date strong {
  overflow: visible;
  font-size: 14px;
  line-height: 19px;
  text-overflow: clip;
  white-space: normal;
}

.rust-stat-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
}

.rust-stat-card.is-online strong {
  color: #78d89a;
}

.combat-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(230px, 1fr);
  gap: 16px;
}

.radar-card,
.gauge-card,
.profile-modes-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.radar-card::before,
.gauge-card::before,
.profile-modes-card::before {
  content: none;
}

.radar-card {
  min-height: 260px;
  padding: 16px;
}

.combat-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.combat-card-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.combat-card-heading strong {
  color: var(--primary);
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.radar-chart {
  display: block;
  width: min(100%, 260px);
  height: 218px;
  margin: 0 auto;
}

.radar-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.radar-fill {
  fill: rgba(74, 163, 255, 0.16);
}

.radar-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}

.radar-point {
  fill: var(--accent);
  stroke: var(--primary);
  stroke-width: 1.5;
}

.radar-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.gauge-card {
  min-height: 260px;
  padding: 16px;
  display: grid;
  align-content: start;
}

.gauge-wrap {
  min-height: 192px;
  display: grid;
  place-items: center;
  align-content: center;
}

.gauge-chart {
  width: 176px;
  max-width: 100%;
  height: 126px;
}

.gauge-track,
.gauge-value {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
}

.gauge-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.gauge-value {
  stroke: var(--profile-orange);
}

.gauge-card.is-blue .gauge-value {
  stroke: var(--accent);
}

.gauge-wrap strong {
  margin-top: -26px;
  color: var(--primary);
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}

.gauge-wrap span {
  color: var(--muted);
  font-size: 14px;
}

.accuracy-card {
  position: absolute;
  right: -96px;
  top: 310px;
  z-index: 4;
  width: 250px;
  min-height: 250px;
  transform: rotate(1deg);
  background: linear-gradient(155deg, rgba(39, 57, 76, 0.96), rgba(24, 35, 48, 0.96));
}

.accuracy-card .gauge-wrap {
  min-height: 170px;
}

.shots-card {
  position: absolute;
  left: -118px;
  top: 360px;
  z-index: 4;
  width: 170px;
  min-height: 260px;
  padding: 18px 14px;
  border: 1px solid rgba(129, 153, 184, 0.18);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(23, 34, 49, 0.96), rgba(15, 24, 36, 0.98));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.34);
  transform: rotate(-2deg);
}

.hitbox-dummy {
  display: block;
  width: 126px;
  height: 184px;
  margin: 0 auto;
}

.hitbox-dummy circle,
.hitbox-dummy path {
  fill: url(#hitboxGradient);
  stroke: rgba(95, 179, 255, 0.4);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hitbox-dummy path:last-of-type {
  fill: none;
}

.hitbox-dummy .hit-point {
  fill: var(--profile-blue-light);
  stroke: rgba(244, 246, 248, 0.72);
  stroke-width: 2;
}

.shots-card p {
  margin: 12px 0 0;
  color: var(--profile-soft);
  font-size: 13px;
  text-align: center;
}

.shots-card strong {
  color: var(--profile-text);
}

.playtime-badge,
.steam-level-badge {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(129, 153, 184, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(38, 51, 67, 0.82), rgba(18, 28, 40, 0.9));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.playtime-badge {
  left: 420px;
  top: -38px;
  width: 160px;
  padding: 16px 18px;
  transform: rotate(-4deg);
}

.steam-level-badge {
  right: 210px;
  top: 84px;
  width: 136px;
  padding: 14px 16px;
  transform: rotate(-2deg);
}

.playtime-badge strong,
.steam-level-badge strong {
  display: block;
  color: var(--profile-text);
  font-size: 26px;
  line-height: 31px;
  font-weight: 700;
}

.playtime-badge span,
.steam-level-badge span {
  display: block;
  margin-top: 3px;
  color: var(--profile-soft);
  font-size: 12px;
}

.bottom-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rust-stat-card.compact {
  min-height: 78px;
  position: relative;
}

.mini-trend {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.mini-trend.up {
  color: #7be59e;
  background: rgba(123, 229, 158, 0.1);
}

.mini-trend.down {
  color: #ff8d8d;
  background: rgba(255, 141, 141, 0.1);
}

.profile-modes-card {
  margin-top: 10px;
  padding: 14px;
}

.profile-mode-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(58px, 0.45fr));
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.profile-mode-row:last-child {
  border-bottom: 0;
}

.profile-mode-row.head {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-mode-row strong {
  color: var(--primary);
  font-weight: 600;
}

.profile-mode-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .profile-main {
    width: min(1080px, calc(100vw - 40px));
  }

  .shots-card,
  .accuracy-card,
  .playtime-badge,
  .steam-level-badge {
    position: static;
    transform: none;
  }

  .rust-profile-panel {
    display: grid;
    gap: 14px;
  }

  .shots-card,
  .accuracy-card,
  .playtime-badge,
  .steam-level-badge {
    width: auto;
  }

  .shots-card {
    min-height: 180px;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
  }

  .hitbox-dummy {
    height: 144px;
  }
}

@media (max-width: 980px) {
  .profile-main {
    width: min(100% - 24px, 1120px);
  }

  .rust-profile-panel {
    padding: 20px;
  }

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

  .profile-sidebar {
    grid-template-columns: 220px 1fr;
    align-items: end;
  }

  .profile-quick-actions,
  .profile-history-button {
    grid-column: 2;
  }

  .general-stats-grid,
  .bottom-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .player-profile-page {
    margin: 34px auto 60px;
  }

  .profile-panel-actions {
    align-items: stretch;
  }

  .profile-back-button,
  .profile-track-button {
    width: 100%;
  }

  .profile-sidebar,
  .general-stats-grid,
  .bottom-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-large,
  .profile-history-button {
    width: 100%;
  }

  .profile-quick-actions,
  .profile-history-button {
    grid-column: auto;
  }

  .profile-mode-row {
    grid-template-columns: 1.2fr repeat(5, minmax(38px, 0.45fr));
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 13px;
    line-height: 19px;
  }

  .nav,
  main,
  .footer,
  .profile-main {
    width: min(100% - 20px, 1120px);
  }

  .nav {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand .aegis-logo-text {
    max-width: 158px;
    font-size: 15px;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav-actions {
    min-width: 0;
    justify-content: flex-end;
  }

  .user-chip {
    max-width: 150px;
  }

  .balance-chip {
    padding: 7px 9px;
  }

  .balance-chip span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 42px;
  }

  .hero-copy {
    max-width: none;
    padding-left: 0;
  }

  h1 {
    width: 100%;
    font-size: clamp(34px, 11vw, 58px);
    line-height: 1.18;
    white-space: normal;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

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

  .status-strip > div {
    min-width: 0;
    padding: 14px;
  }

  .status-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .section {
    padding-top: 42px;
  }

  .section-heading {
    max-width: none;
  }

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

  .product,
  .card,
  .profile-card,
  .mode-card {
    padding: 15px;
  }

  .product {
    min-height: auto;
  }

  .product.featured-supporter {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .product h3 {
    margin-top: 16px;
    font-size: 19px;
    line-height: 25px;
  }

  .product.featured-supporter h3 {
    font-size: 22px;
    line-height: 28px;
  }

  .price {
    font-size: 23px;
    line-height: 30px;
  }

  .perks {
    margin: 14px 0 18px;
    gap: 6px;
  }

  .balance-modal,
  .profile-settings-modal {
    padding: 10px;
    align-items: end;
  }

  .balance-modal-panel,
  .profile-settings-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 18px 18px 14px 14px;
  }

  .payment-method-grid {
    grid-template-columns: 1fr;
  }

  .payment-method-card {
    min-height: 132px;
  }

  .payment-method-art {
    height: 64px;
  }

  .player-profile-page {
    margin: 24px auto 50px;
  }

  .rust-profile-panel {
    padding: 0;
  }

  .profile-content {
    gap: 10px;
  }

  .profile-hero-card {
    border-radius: 16px;
  }

  .profile-hero-banner {
    height: 140px;
  }

  .profile-hero-body {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 0 12px 12px;
    margin-top: -32px;
  }

  .profile-hero-avatar {
    width: 68px;
    height: 68px;
    border-width: 3px;
    border-radius: 18px;
  }

  .profile-hero-main {
    padding-top: 34px;
  }

  .profile-hero-name-row {
    gap: 6px;
    padding-right: 0;
  }

  .profile-hero-name-row h1 {
    max-width: 100%;
    font-size: 20px;
    line-height: 26px;
  }

  .early-supporter-badge {
    padding: 4px 8px;
    font-size: 10px;
    line-height: 14px;
  }

  .profile-edit-button {
    width: 28px;
    height: 28px;
  }

  .profile-role-list,
  .profile-social-links {
    margin-top: 8px;
    gap: 6px;
  }

  .profile-role-list span {
    min-height: 25px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .profile-social-links a {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .profile-music-player {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
  }

  .profile-music-equalizer {
    inset: 6px 82px 6px 56px;
  }

  .profile-music-wave {
    gap: 2px;
  }

  .profile-music-wave span {
    width: 2px;
  }

  .profile-music-stop {
    min-height: 36px;
    padding: 0 10px;
  }

  .profile-hero-views {
    position: static;
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
  }

  .general-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rust-stat-card {
    min-height: 76px;
    padding: 12px;
  }

  .rust-stat-card strong {
    font-size: 20px;
    line-height: 25px;
  }

  .combat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .radar-card,
  .gauge-card {
    min-height: 230px;
    padding: 13px;
  }

  .radar-chart {
    height: 240px;
  }

  .gauge-wrap {
    min-height: 160px;
  }

  .profile-mode-row {
    grid-template-columns: minmax(112px, 1.35fr) repeat(5, minmax(42px, 0.5fr));
    overflow-x: auto;
  }
}

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

  .nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .login-button,
  .button,
  .user-chip,
  .balance-chip {
    min-width: 0;
  }

  .nav-actions .login-button,
  .nav-actions .user-chip {
    flex: 1 1 auto;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(32px, 13vw, 46px);
  }

  .pill,
  .eyebrow {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-strip,
  .product-grid,
  .general-stats-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .status-strip > div {
    border-right: 0;
  }

  .product.featured-supporter::after {
    right: -44px;
    top: 14px;
  }

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

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

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

  .profile-hero-main {
    padding-top: 0;
  }

  .profile-hero-name-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .early-supporter-badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .profile-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-settings-actions .button {
    width: 100%;
  }

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

  .profile-music-player {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }

  .profile-music-cover {
    min-height: 52px;
  }

  .profile-music-stop {
    width: calc(100% - 16px);
    margin: 0 8px;
  }

  .profile-music-equalizer {
    inset: 8px 10px 46px 58px;
  }

  .profile-mode-row {
    grid-template-columns: minmax(116px, 1.35fr) repeat(5, minmax(38px, 0.5fr));
    min-width: 420px;
  }

  .profile-modes-card {
    overflow-x: auto;
  }
}
