@import url("http://avaprime.ru/files/site2026/static/reset.css");
@import url(_modal.css);

  :root {
    --body-bg: #0f0f10;
    --card-bg: #18181b;
    --text-main: #e4e4e7;
    --text-grey: #71717a;
    --header-grad: linear-gradient(90deg, #18181b 0%, #18181b 100%);
	--header-grad2: linear-gradient(to bottom, #6A5ACD, #755D9A);
    --accent-solid: #18181b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 32px rgba(155, 102, 204, 0.2);
	--radius: 20px;
  }
}

@font-face {
  font-family: "Montserrat";
  src: url("http://avaprime.ru/files/site2026/static/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
}


html, body {
  height: 100%;
}

body {
  font-family: "Montserrat";
  background: var(--body-bg);
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--text-main);
}


header {
  width: calc(100% - 20px);
  background: var(--header-grad);
  margin: 10px;
  padding: 20px 0;
  border-radius: 25px;
}

header .header-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 30px;
  max-width: 80%;
  margin: 0 auto;
}

header .logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
header .logo img {
  max-width: 100%;
  height: auto;
}

header .header-list ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

header .header-list ul li {
  position: relative;
  cursor: pointer;
  padding: 5px 0;
}
header .header-list ul li::after {
  content: "";
  height: 2px;
  width: 0;
  background: #fff;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.5s;
}
header .header-list ul li:hover::after {
  width: 100%;
}

header .header-icons {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}
header .header-icons img {
  height: 30px;
  cursor: pointer;
}

header .burger-menu {
  display: none;
  cursor: pointer;
}
header .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--card-bg);
  z-index: 9999;
  padding: 20px;
  text-align: center;
}
header .mobile-menu .close-btn {
  text-align: end;
}
header .mobile-menu a {
  background: var(--header-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
header .mobile-menu .mobile-list {
  display: grid;
  justify-content: center;
  gap: 3rem;
  font-weight: 700;
  margin-top: 5rem;
  font-size: 1.5rem;
}
header .mobile-menu .lang-switch {
  width: 80vw;
  font-size: 1rem;
}


main {
  flex: 1;
}

main .wrap {
  width: 80%;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.notice {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.notice--error {
  background: rgba(255, 80, 80, 0.1);
  color: #e53e3e;
  border: 1px solid rgba(255, 80, 80, 0.25);
  text-decoration: none;
}
.notice--success {
  background: rgba(72, 187, 120, 0.1);
  color: #276749;
  border: 1px solid rgba(72, 187, 120, 0.25);
}
@media (prefers-color-scheme: dark) {
  .notice--success { color: #68d391; }
}


.profile-header {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--header-grad2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-avatar img {
  height: 38px;
  filter: brightness(10);
}

.profile-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-greeting {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--header-grad2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  margin: 0;
}

.profile-id-badge,
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--header-grad2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tg-role-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--header-grad);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.2s, transform 0.2s;
}
.tg-role-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.tg-role-btn img {
  height: 14px;
  filter: brightness(10);
}

.quit-btn {
  background: rgba(128, 128, 128, 0.1);
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.quit-btn:hover {
  background: rgba(255, 80, 80, 0.12);
  transform: scale(1.05);
}
.quit-btn img {
  height: 22px;
}


.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-grey);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-list__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-list__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-list__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

/* ÐŸÐ¾ÐºÑƒÐ¿ÐºÐ¸ â€” Ñ‚ÐµÐ³Ð¸ */
.purchases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.purchase-tag {
  display: inline-block;
  background: var(--header-grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}


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

.action-btn {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border: none;
  border-radius: var(--radius);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Montserrat";
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.action-btn__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.action-btn--primary {
  background: var(--header-grad);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.action-btn--primary span:last-child {
  color: #fff;
}

.action-btn--danger {
  color: #e53e3e;
}
.action-btn--danger:hover {
  background: rgba(255, 80, 80, 0.07);
}


.account-colorchange {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.change-color {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  transition: transform 0.25s;
}
.change-color:hover {
  transform: translateY(-2px);
}

.change-color .colorInput {
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.change-color input[type=color] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 90px;
  height: 90px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.change-color input[type=color]::-webkit-color-swatch {
  border-radius: 18px;
  border: 4px solid var(--accent-solid);
}

.change-color .inputText {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.change-color .inputText h1 {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--header-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
}

.change-color .inputText p {
  font-size: 0.85rem;
  color: var(--text-grey);
  margin: 0;
}


footer {
  background: var(--header-grad);
  margin-top: 20px;
}
footer .footer-wrap {
  width: 80%;
  margin: 0 auto;
  line-height: 5rem;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
}
footer .tg-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer .tg-footer img {
  height: 30px;
}


@media (max-width: 900px) {
  .actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header .header-container {
    grid-template-columns: 1fr 1fr;
    max-width: 90%;
  }
  header .header-list,
  header .header-icons {
    display: none;
  }
  header .burger-menu {
    display: flex;
    justify-content: flex-end;
    height: 40px;
  }

  main .wrap {
    width: 90%;
  }

  .profile-header {
    padding: 20px;
    gap: 16px;
  }
  .profile-greeting {
    font-size: 1.3rem;
  }

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

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

  .account-colorchange {
    grid-template-columns: 1fr;
  }

  .change-color {
    padding: 20px;
  }
  .change-color .colorInput {
    width: 80px;
    height: 80px;
  }
  .change-color input[type=color] {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .actions-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-avatar {
    width: 54px;
    height: 54px;
  }
  .profile-avatar img {
    height: 28px;
  }
}