@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');
:root {
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-accent: 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select,
a {
  font-family: var(--font-main);
}

body {
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.logo__text,
.hero__title,
.section-title,
.nav a,
.btn,
button {
  font-family: var(--font-accent);
  letter-spacing: -0.03em;
}

p,
li,
span,
label,
input,
textarea,
select,
small {
  font-family: var(--font-main);
}

input,
textarea,
select,
button {
  font-size: 16px;
}

::placeholder {
  font-family: var(--font-main);
  font-weight: 500;
}
:root {
  --bg: #050505;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.65);
  --text-fade: rgba(255, 255, 255, 0.45);
  --white: #ffffff;
  --black: #000000;
  --green: #67f0a8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1240px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.bg-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.bg-blur-1 {
  width: 360px;
  height: 360px;
  background: #ffffff;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-blur-2 {
  width: 280px;
  height: 280px;
  background: #ff7a00;
  top: 320px;
  left: 5%;
}

.bg-blur-3 {
  width: 320px;
  height: 320px;
  background: #00c2ff;
  top: 180px;
  right: 5%;
}

.header,
.hero,
.section {
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo__box {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__top {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--text-fade);
}

.logo__bottom {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  color: var(--text-soft);
  font-size: 15px;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--white);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu {
  position: relative;
}

.profile-menu__toggle {
  gap: 10px;
  min-width: 0;
}

.profile-menu__name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.profile-menu.is-open .profile-menu__chevron {
  transform: rotate(180deg);
}

.profile-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.profile-menu.is-open .profile-menu__dropdown {
  display: flex;
}

.profile-menu__item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--white);
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.profile-menu__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-menu__item--danger {
  color: #ff9d9d;
}

.profile-menu__item + .profile-menu__item {
  margin-top: 4px;
}

.profile-menu__item + .profile-menu__item {
  margin-top: 4px;
}

.is-hidden-by-auth {
  display: none !important;
}

@media (max-width: 860px) {
  .profile-menu__name {
    max-width: 110px;
  }

  .profile-menu__dropdown {
    right: 0;
    left: auto;
    min-width: 200px;
  }
}

.btn {
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  pointer-events: none;
}

.btn--light {
  background: var(--white);
  color: var(--black);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
}

.btn--ghost {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--white);
}

.btn--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
}

.btn--dark-solid {
  background: var(--black);
  color: var(--white);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 18px;
}

.burger {
  width: 48px;
  height: 48px;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
}

.hero {
  padding: 64px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero__title {
  margin: 22px 0 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 760px;
}

.hero__title span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
}

.hero__text {
  margin: 28px 0 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.stat-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-fade);
  font-size: 14px;
  line-height: 1.5;
}

.hero__panel {
  display: flex;
  justify-content: flex-end;
}

.match-card {
  width: 100%;
  max-width: 520px;
  padding: 18px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.match-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 20px;
}

.match-card__label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-fade);
}

.match-card__top h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(103, 240, 168, 0.12);
  border: 1px solid rgba(103, 240, 168, 0.2);
  color: #a6f8c9;
  font-size: 12px;
  font-weight: 700;
}

.player-card {
  background: #090909;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
}

.player-card + .player-card {
  margin-top: 14px;
}

.player-card__meta,
.player-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-card__meta {
  color: var(--text-fade);
  font-size: 14px;
}

.player-card__body {
  margin-top: 14px;
}

.player-card__body h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.player-card__body p {
  margin: 6px 0 0;
  color: var(--text-fade);
  font-size: 14px;
}

.player-card__body strong {
  font-size: 40px;
  line-height: 1;
}

.muted-score {
  color: rgba(255, 255, 255, 0.55);
}

.match-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.match-info__item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}

.match-info__item span {
  display: block;
  color: var(--text-fade);
  font-size: 12px;
}

.match-info__item strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-label {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
}

.section-title {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-note {
  margin: 0;
  max-width: 520px;
  color: var(--text-fade);
  font-size: 16px;
  line-height: 1.7;
  text-align: right;
}

.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-card,
.small-card,
.step-card,
.feature-box,
.steps-box {
  border: 1px solid var(--border);
}

.info-card {
  background: var(--bg-card);
  border-radius: 32px;
  padding: 26px;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
}

.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #101010;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.info-card h3,
.step-card h3 {
  margin: 0;
  font-size: 24px;
}

.info-card p,
.step-card p,
.small-card p,
.feature-box__text,
.cta-box p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.features-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  border-radius: 36px;
  padding: 34px;
}

.feature-box--big {
  min-height: 100%;
}

.small-card {
  background: #0b0b0b;
  border-radius: 28px;
  padding: 24px;
}

.small-card__line {
  width: 48px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.steps-box {
  border-radius: 40px;
  padding: 38px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.steps-head {
  max-width: 700px;
  margin-bottom: 30px;
}

.step-card {
  background: rgba(5, 5, 5, 0.7);
  border-radius: 30px;
  padding: 24px;
}

.step-card__num {
  display: inline-block;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.cta-box {
  background: var(--white);
  color: var(--black);
  border-radius: 40px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-box__label {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(0, 0, 0, 0.45);
}

.cta-box h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cta-box p {
  max-width: 760px;
  color: rgba(0, 0, 0, 0.65);
}

.cta-box__actions {
  flex-shrink: 0;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .hero__grid,
  .features-layout,
  .cta-box,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    gap: 10px;
  }

  .section-note {
    text-align: left;
    max-width: 100%;
  }

  .hero__panel {
    justify-content: flex-start;
  }

  .hero__title {
    font-size: 58px;
  }

  .hero__stats,
  .cards-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 84px;
    left: 20px;
    right: 20px;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav.is-open {
    display: flex;
  }

  .burger {
    display: inline-flex;
  }

  .desktop-only {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__title {
    font-size: 46px;
  }

  .hero__text {
    font-size: 18px;
  }

  .hero__stats,
  .cards-grid--3,
  .cards-grid--2,
  .match-info {
    grid-template-columns: 1fr;
  }

  .section-title,
  .cta-box h2 {
    font-size: 34px;
  }

  .match-card__top h3 {
    font-size: 20px;
  }

  .player-card__body h4 {
    font-size: 20px;
  }

  .player-card__body strong {
    font-size: 32px;
  }

  .cta-box,
  .steps-box,
  .feature-box {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .header__inner {
    min-height: 76px;
  }

  .logo__bottom {
    font-size: 14px;
  }

  .logo__top {
    font-size: 11px;
  }

  .hero__badge {
    font-size: 12px;
    padding: 9px 12px;
  }

  .hero__title {
    font-size: 38px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .btn--light,
  .btn--dark,
  .btn--dark-solid {
    width: 100%;
  }

  .section-title,
  .cta-box h2 {
    font-size: 30px;
  }

  .stat-card,
  .info-card,
  .small-card,
  .step-card {
    border-radius: 24px;
  }

  .match-card {
    border-radius: 28px;
    padding: 14px;
  }

  .player-card {
    border-radius: 22px;
  }

  .cta-box {
    border-radius: 28px;
    padding: 24px;
  }
}

.footer-cta {
  border: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-radius: 40px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-cta h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
}

.footer__inner {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 40px;
  padding: 34px;
  backdrop-filter: blur(16px);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.footer__brand {
  max-width: 520px;
}

.footer__text {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__column h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--white);
}

.footer__column a {
  display: block;
  color: var(--text-soft);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer__column a:hover,
.footer__bottom-links a:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-fade);
  font-size: 14px;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 72px 0 48px;
}

.page-card {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 40px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.page-label {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
}

.page-title {
  margin: 0;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-text {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.auth-card {
  border: 1px solid var(--border);
  background: #0b0b0b;
  border-radius: 28px;
  padding: 24px;
}

.auth-card h2 {
  margin: 0;
  font-size: 24px;
}

.auth-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  outline: none;
}

.auth-form input::placeholder {
  color: var(--text-fade);
}

@media (max-width: 1100px) {
  .footer__top,
  .footer__columns,
  .footer-cta {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 860px) {
  .footer__columns,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .page-card,
  .footer__inner,
  .footer-cta {
    padding: 24px;
    border-radius: 28px;
  }

  .page-title,
  .footer-cta h2 {
    font-size: 34px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .page-title,
  .footer-cta h2 {
    font-size: 30px;
  }

  .page-actions {
    flex-direction: column;
  }

  .page-actions .btn {
    width: 100%;
  }
}

.page-shell {
  min-height: 100vh;
}

.page-main {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
}

.auth-page {
  max-width: 1120px;
  margin: 0 auto;
}

.auth-page__intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.auth-page__text {
  margin: 18px auto 0;
  max-width: 820px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.auth-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.auth-card__label {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.38);
}

.auth-card h2 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  color: var(--text-soft);
  font-size: 14px;
}

.auth-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  outline: none;
  transition: var(--transition);
}

.auth-field input:focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
}

.auth-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.auth-status {
  min-height: 24px;
  margin: 18px auto 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.auth-status.is-success {
  color: #67f0a8;
}

.auth-status.is-error {
  color: #ff8e8e;
}

.auth-status.is-loading {
  color: rgba(255, 255, 255, 0.75);
}


.is-hidden {
  display: none !important;
}

.header-auth-dropdown {
  position: relative;
}

.header-auth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-auth-toggle::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.75;
}

.header-auth-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.header-auth-dropdown.is-open .header-auth-menu {
  display: block;
}

.header-auth-menu-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.header-auth-menu-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.header-auth-menu-button--danger {
  color: #ff8d8d;
}

.profile-shell {
  position: relative;
  z-index: 2;
  padding: 56px 0 96px;
}

.profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.profile-page-title {
  margin-bottom: 10px;
}

.profile-page-subtitle {
  max-width: 760px;
}

.profile-loading {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.profile-guest.is-hidden,
.profile-loading.is-hidden {
  display: none;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-hero-card,
.profile-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.profile-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 26px;
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 800;
}

.profile-mini-label {
  margin: 0 0 8px;
  color: var(--text-fade);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.profile-name {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1;
}

.profile-email {
  margin: 0;
  color: var(--text-soft);
}

.profile-balance-box {
  min-width: 240px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.profile-balance-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-fade);
}

.profile-balance-value {
  font-size: 32px;
  font-family: var(--font-accent);
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.profile-card {
  padding: 24px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-card-header h3 {
  margin: 0;
  font-size: 22px;
}

.profile-stat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-stat-row span {
  color: var(--text-soft);
}

.profile-stat-row strong {
  text-align: right;
  word-break: break-word;
}

.profile-tip-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-tip-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  z-index: 200;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(920px, 100%);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow);
  padding: 24px;
}

.modal-card--narrow {
  width: min(640px, calc(100% - 24px));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-title {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.1;
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.admin-stat-card span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.admin-stat-card strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 32px;
  line-height: 1;
}

@media (max-width: 980px) {
  .profile-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-topbar,
  .profile-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-hero-main {
    align-items: flex-start;
  }

  .profile-name {
    font-size: 26px;
  }

  .profile-balance-value {
    font-size: 28px;
  }

  .header-auth-menu {
    min-width: 100%;
    right: 0;
  }
}

.is-hidden {
  display: none !important;
}

.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-sidebar {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-group-button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  padding: 16px 18px;
  border-radius: 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.settings-group-button:hover,
.settings-group-button.is-active {
  background: rgba(81, 214, 255, 0.12);
  border-color: rgba(81, 214, 255, 0.35);
}

.settings-content {
  min-width: 0;
}

.settings-panel {
  display: none;
  gap: 24px;
}

.settings-panel.is-active {
  display: grid;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.settings-row-text h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.settings-row-text p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.settings-row-actions {
  flex-shrink: 0;
}

.settings-row--steam {
  align-items: flex-start;
}

.settings-row--steam .settings-row-text {
  flex: 1;
}

.settings-row-actions--steam {
  display: flex;
  align-items: flex-start;
  padding-top: 78px;
}

.settings-confirm-button {
  min-width: 58px;
  height: 56px;
  padding: 0 18px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.settings-confirm-button.is-saved {
  opacity: 0.6;
  cursor: default;
}

.settings-status {
  margin-top: 14px;
  min-height: 22px;
  font-size: 14px;
  color: var(--text-soft);
}

.settings-status.is-success {
  color: #78ffb3;
}

.settings-status.is-error {
  color: #ff8d8d;
}

.settings-status.is-loading {
  color: #8fdcff;
}

.settings-modal-text {
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}

.settings-input-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.settings-input {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.settings-input:focus {
  border-color: rgba(81, 214, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(81, 214, 255, 0.12);
}

.settings-inline-submit {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.settings-inline-submit .settings-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.settings-inline-submit .settings-confirm-button {
  flex: 0 0 58px;
  min-width: 58px;
  width: 58px;
  height: 56px;
  align-self: stretch;
}

.settings-inline-submit .settings-confirm-button.settings-confirm-button--locked {
  flex: 0 0 auto;
  min-width: 240px;
  width: auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.2;
}

.settings-input--code {
  text-align: center;
  letter-spacing: 10px;
  font-size: 26px;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.modal-actions--space {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.modal-actions-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-binding-loader {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  color: var(--text-soft);
}

.settings-binding-loader.is-hidden {
  display: none;
}

.settings-binding-loader-text {
  font-size: 15px;
  line-height: 1.5;
}

.settings-binding-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(81, 214, 255, 0.95);
  animation: settingsBindingSpin 0.8s linear infinite;
}

@keyframes settingsBindingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-balance-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.wallet-topup-form {
  display: grid;
  gap: 16px;
}

.wallet-amount-grid,
.match-option-grid,
.admin-tools-grid {
  display: grid;
  gap: 12px;
}

.wallet-amount-grid,
.match-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid--admin {
  grid-template-columns: 1fr;
}

.profile-card--admin-tools {
  width: 100%;
}

.admin-tools-grid--full {
  width: 100%;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.wallet-amount-button,
.match-option-button {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.wallet-amount-button:hover,
.match-option-button:hover,
.match-option-button.is-active,
.wallet-amount-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.match-search-status {
  min-height: 140px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  white-space: pre-line;
  line-height: 1.7;
}

.admin-tool-button {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(8, 8, 8, 0.98));
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-tool-button:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(10, 10, 10, 0.98));
  transform: translateY(-1px);
}

.admin-tool-button--accent {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(81, 214, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(81, 214, 255, 0.08), 0 0 0 1px rgba(81, 214, 255, 0.05);
}

.modal-card--wide {
  width: min(1180px, 100%);
}

.modal-card--admin-servers {
  width: min(980px, calc(100% - 32px));
  max-height: min(88vh, 920px);
  padding: 20px;
  overflow: hidden;
}

.modal-header--admin-servers {
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-servers-subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.admin-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-modal-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.admin-modal-icon-button:hover,
.admin-modal-icon-button.is-active {
  background: rgba(81, 214, 255, 0.12);
  border-color: rgba(81, 214, 255, 0.32);
  transform: translateY(-1px);
}

.admin-servers-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
}

.admin-servers-layout--compact {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-servers-panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  min-width: 0;
}

.admin-servers-panel--create {
  display: none;
}

.admin-servers-panel--create.is-open {
  display: block;
}

.admin-servers-panel--list {
  min-height: 0;
}

.admin-servers-panel-header {
  margin-bottom: 16px;
}

.admin-servers-panel-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.admin-servers-count {
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.admin-server-form {
  display: grid;
  gap: 14px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-field {
  display: grid;
  gap: 8px;
}

.admin-form-field label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.admin-servers-list {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.admin-server-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  transition: var(--transition);
}

.admin-server-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-server-card.is-expanded {
  border-color: rgba(81, 214, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.admin-server-card-summary {
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
}

.admin-server-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.admin-server-card-title-wrap {
  min-width: 0;
}

.admin-server-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  word-break: break-word;
}

.admin-server-card-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.admin-server-card-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-server-status-pill,
.admin-server-summary-modes {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-server-status-pill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.admin-server-status-pill.is-free {
  border-color: rgba(101, 240, 168, 0.28);
  background: rgba(101, 240, 168, 0.12);
  color: #9effc8;
}

.admin-server-status-pill.is-busy {
  border-color: rgba(255, 166, 120, 0.28);
  background: rgba(255, 166, 120, 0.12);
  color: #ffc49c;
}

.admin-server-summary-modes {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.admin-server-card-chevron {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-soft);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.admin-server-card.is-expanded .admin-server-card-chevron {
  transform: rotate(180deg);
}

.admin-server-card-details {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-server-card.is-expanded .admin-server-card-details {
  display: block;
}

.admin-server-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-server-mode-row-label {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.admin-server-mode-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-server-mode-chip {
  min-width: 72px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.admin-server-mode-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(81, 214, 255, 0.28);
}

.admin-server-mode-chip.is-active {
  background: linear-gradient(135deg, rgba(81, 214, 255, 0.18), rgba(111, 163, 255, 0.18));
  border-color: rgba(81, 214, 255, 0.4);
  color: #dff7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-server-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-server-editor-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-server-editor-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-server-editor-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.settings-input--admin-server {
  height: 46px;
  border-radius: 14px;
  font-size: 14px;
}

.admin-server-save-button {
  height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(81, 214, 255, 0.22);
  background: rgba(81, 214, 255, 0.08);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.admin-server-save-button:hover {
  background: rgba(81, 214, 255, 0.14);
  border-color: rgba(81, 214, 255, 0.34);
}

.admin-server-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.admin-server-card-meta {
  color: var(--text-soft);
  font-size: 13px;
}

.admin-server-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-server-inline-status {
  margin-top: 12px;
  min-height: 22px;
}

.admin-server-delete-button {
  border-radius: 14px;
}

.admin-server-deploy-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(81, 214, 255, 0.12);
  background: rgba(81, 214, 255, 0.06);
  color: var(--text-soft);
  line-height: 1.55;
}

.admin-empty-state {
  padding: 28px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  text-align: center;
}

.admin-empty-state--servers {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.admin-empty-state--servers strong {
  color: var(--white);
  font-size: 18px;
}

.admin-empty-state--servers p {
  margin: 0;
  max-width: 420px;
  line-height: 1.55;
}

.page-actions--compact {
  margin-top: 18px;
}

.page-actions--compact .btn {
  min-width: 220px;
}

.match-option-button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .settings-inline-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-inline-submit .settings-confirm-button {
    width: 100%;
  }
}