/* SYNX — личный кабинет. Подключается после styles.css и переиспользует
   его токены: фон #0b0b0e, акцент #f3243f, приглушённый текст #96949f. */

.acct-main {
  padding: 40px 0 96px;
  min-height: 60vh;
}

/* ---------- шапка профиля ---------- */

.acct-hero {
  position: relative;
  border: 1px solid #ffffff12;
  background: linear-gradient(135deg, #14141a 0%, #0d0d11 60%);
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  overflow: hidden;
}
.acct-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #f3243f1f 0%, transparent 70%);
  pointer-events: none;
}

.acct-avatar {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid #ffffff1a;
  background: #17171d;
  object-fit: cover;
  flex-shrink: 0;
}
.acct-avatar--empty {
  display: grid;
  place-items: center;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 34px;
  color: #55535e;
}

.acct-identity {
  flex: 1 1 260px;
  min-width: 0;
}
.acct-identity h1 {
  margin: 0 0 6px;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.acct-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #96949f;
  font-size: 12px;
}
.acct-meta b {
  color: #f6f6f8;
  font-weight: 700;
}
.acct-meta a {
  color: #ff6b7c;
  border-bottom: 1px solid #ff6b7c55;
}

.badge {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 4px 7px;
  border: 1px solid #ffffff1f;
  color: #cfccd6;
  white-space: nowrap;
}
.badge--prime {
  background: linear-gradient(100deg, #f3243f, #ff7a2f);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.badge--rank {
  background: #ffffff0d;
}
.badge--muted {
  color: #77757f;
}
.badge--admin {
  background: #2a1c3a;
  border-color: #7a4fd0;
  color: #cbb2ff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.acct-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- вкладки ---------- */

.acct-tabs {
  display: flex;
  gap: 4px;
  margin: 28px 0 24px;
  border-bottom: 1px solid #ffffff12;
  overflow-x: auto;
  scrollbar-width: none;
}
.acct-tabs::-webkit-scrollbar {
  display: none;
}
.acct-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #96949f;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.acct-tab:hover {
  color: #f6f6f8;
}
.acct-tab.is-active {
  color: #fff;
  border-bottom-color: #f3243f;
}
.acct-tab .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3243f;
  margin-left: 7px;
  vertical-align: middle;
}

.acct-panel[hidden] {
  display: none !important;
}

/* ---------- блоки ---------- */

.card {
  border: 1px solid #ffffff12;
  background: #101014;
  border-radius: 8px;
  padding: 22px 24px;
}
.card + .card {
  margin-top: 18px;
}
.card h2 {
  margin: 0 0 4px;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}
.card-sub {
  color: #96949f;
  font-size: 12px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* ---------- статистика ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  /* Разделители рисует сама ячейка, а не фон контейнера: иначе последний
     неполный ряд оставляет серый прямоугольник. */
  background: #101014;
  border: 1px solid #ffffff0f;
  border-radius: 8px;
  overflow: hidden;
}
.stat {
  background: #101014;
  box-shadow: inset -1px -1px 0 #ffffff0f;
  padding: 16px 18px;
}
.stat span {
  display: block;
  color: #96949f;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.stat b {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .5px;
}
.stat small {
  color: #77757f;
  font-size: 11px;
  margin-left: 4px;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff06;
}
.rank-chip i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  border: 1px solid #ffffff24;
  background: #ffffff08;
  color: #f6f6f8;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 18px;
  transition: background .18s, border-color .18s, opacity .18s;
}
.btn:hover:not(:disabled) {
  background: #ffffff14;
}
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.btn--red {
  background: #f3243f;
  border-color: #f3243f;
}
.btn--red:hover:not(:disabled) {
  background: #ff3b54;
  border-color: #ff3b54;
}
.btn--steam {
  background: linear-gradient(100deg, #1b2838, #2a475e);
  border-color: #4a6d8c;
}
.btn--steam:hover:not(:disabled) {
  background: linear-gradient(100deg, #22334a, #35607d);
}
.btn--ghost {
  background: none;
}
.btn--small {
  padding: 8px 12px;
  font-size: 11px;
}
.btn--wide {
  width: 100%;
}

/* ---------- скинченджер ---------- */

.loadout-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.loadout-chip {
  border: 1px solid #ffffff14;
  background: #0d0d11;
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.loadout-chip img {
  width: 46px;
  height: 32px;
  object-fit: contain;
}
.loadout-chip div {
  min-width: 0;
}
.loadout-chip span {
  display: block;
  font-size: 10px;
  color: #96949f;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.loadout-chip b {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.loadout-chip--empty b {
  color: #6c6a74;
  font-weight: 500;
}

.skin-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .skin-layout {
    grid-template-columns: 1fr;
  }
}

.weapon-list {
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #0d0d11;
  max-height: 620px;
  overflow-y: auto;
}
.weapon-group {
  padding: 12px 14px 4px;
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #6c6a74;
  font-weight: 800;
}
.weapon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  padding: 9px 14px;
  color: #b8b5bf;
  font-size: 13px;
  transition: background .15s, color .15s;
}
.weapon-item:hover {
  background: #ffffff08;
  color: #fff;
}
.weapon-item.is-active {
  background: #f3243f14;
  border-left-color: #f3243f;
  color: #fff;
  font-weight: 700;
}
.weapon-item small {
  margin-left: auto;
  color: #6c6a74;
  font-size: 10px;
}

.skin-panel {
  min-width: 0;
}
.skin-panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.skin-panel-head h3 {
  margin: 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.skin-panel-head span {
  color: #96949f;
  font-size: 12px;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}
.skin-tile {
  position: relative;
  border: 1px solid #ffffff12;
  background: linear-gradient(160deg, #17171d, #101014);
  border-radius: 7px;
  padding: 10px;
  text-align: left;
  transition: border-color .16s, transform .16s;
  overflow: hidden;
}
.skin-tile:hover {
  border-color: #ffffff33;
  transform: translateY(-2px);
}
.skin-tile.is-equipped {
  border-color: #7febaa;
  box-shadow: inset 0 0 0 1px #7febaa44;
}
.skin-tile.is-locked {
  cursor: pointer;
}
.skin-tile img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  margin-bottom: 8px;
}
.skin-tile b {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  min-height: 32px;
  overflow: hidden;
}
.skin-tile small {
  display: block;
  color: #77757f;
  font-size: 10px;
  margin-top: 6px;
}
.skin-tile .lock {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0b0b0ecc;
  border: 1px solid #ffd70066;
  color: #ffd700;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 3px;
  padding: 3px 6px;
}
.skin-tile .equipped {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #7febaacc;
  color: #06210f;
  font-size: 9px;
  font-weight: 800;
  border-radius: 3px;
  padding: 3px 6px;
}

.notice {
  border: 1px solid #ffffff16;
  border-left: 3px solid #f3243f;
  background: #f3243f0d;
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.notice b {
  color: #fff;
}
.notice--gold {
  border-left-color: #ffd700;
  background: #ffd7000d;
}

/* ---------- PRIME ---------- */

.prime-card {
  border: 1px solid #ffd7002e;
  background: linear-gradient(140deg, #1a1410, #101014 65%);
  border-radius: 10px;
  padding: 28px 30px;
}
.prime-price {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 1px;
}
.prime-price small {
  font-size: 16px;
  color: #96949f;
  letter-spacing: 0;
  margin-left: 6px;
}
.perks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
}
.perks li {
  font-size: 13px;
  color: #cfccd6;
  padding-left: 22px;
  position: relative;
}
.perks li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #ffd700;
}
.duration-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.duration {
  border: 1px solid #ffffff1f;
  background: #ffffff06;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
}
.duration.is-active {
  border-color: #ffd700;
  background: #ffd7001a;
  color: #ffd700;
}

/* ---------- таблицы ---------- */

.tbl-scroll {
  overflow-x: auto;
}
table.acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.acct-table th {
  text-align: left;
  color: #77757f;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid #ffffff12;
  white-space: nowrap;
}
table.acct-table td {
  padding: 12px;
  border-bottom: 1px solid #ffffff0a;
  vertical-align: middle;
}
table.acct-table tr:last-child td {
  border-bottom: 0;
}
table.acct-table tbody tr:hover {
  background: #ffffff05;
}
.cell-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}
.cell-player img {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #17171d;
}
.cell-player b {
  font-weight: 700;
}
.pos {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 17px;
  color: #96949f;
}
.pos--top {
  color: #ffd700;
}
.status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 4px 7px;
  border: 1px solid #ffffff1f;
  color: #b8b5bf;
}
.status-pill--paid {
  border-color: #7febaa55;
  color: #7febaa;
}
.status-pill--pending {
  border-color: #ffd70055;
  color: #ffd700;
}
.status-pill--failed,
.status-pill--canceled {
  border-color: #f3243f55;
  color: #ff6b7c;
}

/* ---------- формы ---------- */

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #96949f;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0d0d11;
  border: 1px solid #ffffff1a;
  border-radius: 5px;
  color: #f6f6f8;
  padding: 11px 13px;
  font-size: 13px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #f3243f;
}
.field .hint {
  display: block;
  color: #77757f;
  font-size: 11px;
  margin-top: 6px;
}
.field .hint--ok {
  color: #7febaa;
}
.field .hint--bad {
  color: #ff6b7c;
}
.field[data-locked='1'] input {
  opacity: .5;
}

/* ---------- подключения ---------- */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.link-card {
  border: 1px solid #ffffff12;
  background: #0d0d11;
  border-radius: 8px;
  padding: 18px;
}
.link-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.link-card header b {
  font-size: 13px;
}
.link-card header span {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #77757f;
}
.link-card header span.is-on {
  color: #7febaa;
}
.link-card .row {
  display: flex;
  gap: 8px;
}

/* ---------- прочее ---------- */

.empty {
  text-align: center;
  padding: 48px 20px;
  color: #96949f;
  font-size: 13px;
}
.empty h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 24px;
  color: #f6f6f8;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff33;
  border-top-color: #f3243f;
  border-radius: 50%;
  animation: acct-spin .7s linear infinite;
  vertical-align: -2px;
}
@keyframes acct-spin {
  to {
    transform: rotate(360deg);
  }
}
.muted {
  color: #77757f;
}
.mono {
  font-family: monospace;
}
.acct-footer {
  margin-top: 40px;
  color: #55535e;
  font-size: 11px;
  text-align: center;
}
