/* ==========================================================
   RUSTY NAIL — PROFILE
   Профиль + меню в хедере
   ========================================================== */

/* ==========================================================
   ХЕДЕР — БАЛАНС
   ========================================================== */
.header-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  margin-right: 4px;
  text-decoration: none;
}

.header-balance i { color: var(--accent); font-size: 14px; }

.header-balance b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   ХЕДЕР — ПРОФИЛЬ
   ========================================================== */
.header-profile {
  position: relative;
}

.header-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.header-profile-btn:hover {
  background: var(--bg-1);
  border-color: var(--border);
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.header-nickname {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-chev {
  font-size: 9px;
  opacity: 0.6;
  transition: transform .2s;
}

.header-profile.is-open .header-chev { transform: rotate(180deg); }

/* ==========================================================
   ХЕДЕР — МЕНЮ ПРОФИЛЯ
   ========================================================== */
.header-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(.98);
  transition: all .15s cubic-bezier(.22, 1, .36, 1);
  z-index: 200;
}

.header-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.header-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}

.header-menu-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.header-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.header-menu-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
}

.header-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: all .12s;
}

.header-menu-item i {
  font-size: 14px;
  color: var(--text-3);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  transition: color .12s;
}

.header-menu-item:hover {
  background: var(--bg-3);
  color: var(--text);
}

.header-menu-item:hover i { color: var(--accent); }

.header-menu-item.is-danger { color: #f87171; }
.header-menu-item.is-danger i { color: #f87171; }
.header-menu-item.is-danger:hover { background: rgba(248, 113, 113, 0.08); }

.header-menu-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 2px;
}

@media (max-width: 900px) {
  .header-nickname { display: none; }
  .header-profile-btn { padding: 0 6px 0 4px; }
}

@media (max-width: 600px) {
  .header-balance { display: none; }
}

/* ==========================================================
   ПРОФИЛЬ — HERO
   ========================================================== */
.profile-hero {
  position: relative;
  background:
    radial-gradient(ellipse 700px 400px at 80% 100%, var(--accent-15), transparent 60%),
    linear-gradient(135deg, #2a1512 0%, var(--bg-1) 50%, #1f1512 100%);
  border: 1px solid rgba(224, 52, 44, 0.2);
  border-radius: var(--r);
  padding: 32px;
  overflow: hidden;
}

.profile-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: inherit;
  pointer-events: none;
  mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black, transparent 80%);
}

.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  background: var(--bg-2);
  box-shadow: 0 0 24px rgba(224, 52, 44, 0.35);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-word;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-meta-item i {
  color: var(--text-3);
  font-size: 13px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .profile-hero { padding: 22px; }
  .profile-hero-inner { gap: 18px; }
  .profile-avatar { width: 72px; height: 72px; }
  .profile-name { font-size: 22px; }
}

/* ==========================================================
   ПРОФИЛЬ — СТАТЫ
   ========================================================== */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all .18s;
}

.profile-stat:hover {
  background: var(--bg-2);
  transform: translateY(-1px);
}

.profile-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-stat-icon.i-orange { background: var(--accent-08); color: var(--accent); }
.profile-stat-icon.i-green  { background: rgba(123, 201, 111, 0.12); color: var(--green); }
.profile-stat-icon.i-blue   { background: rgba(103, 232, 249, 0.1); color: #67e8f9; }

.profile-stat-body { min-width: 0; flex: 1; }

.profile-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.profile-stat-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-top: 3px;
}

@media (max-width: 700px) {
  .profile-stats { grid-template-columns: 1fr; }
}

/* ==========================================================
   ПРОФИЛЬ — ПОКУПКИ
   ========================================================== */
.purchases-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all .15s;
}

.purchase-row:hover {
  background: var(--bg-3);
  border-color: var(--border-2);
}

.purchase-info { min-width: 0; flex: 1; }

.purchase-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.purchase-date {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.purchase-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ==========================================================
   LAYOUT FULL
   ========================================================== */
.layout-full {
  grid-template-columns: 1fr;
  max-width: 1200px;
}

/* ==========================================================
   КЕШБЕК В МЕНЮ ПРОФИЛЯ
   ========================================================== */
.header-cashback {
  margin: 4px 5px 6px;
  padding: 10px 12px;
  background: rgba(123, 201, 111, 0.06);
  border: 1px solid rgba(123, 201, 111, 0.2);
  border-radius: var(--r);
}

.header-cashback-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.header-cashback-info span {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.header-cashback-info b {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.header-cashback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  background: rgba(123, 201, 111, 0.12);
  border: 1px solid rgba(123, 201, 111, 0.3);
  border-radius: var(--r);
  color: var(--green);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}

.header-cashback-btn:hover:not(:disabled) {
  background: rgba(123, 201, 111, 0.2);
}

.header-cashback-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.header-cashback-btn i { font-size: 12px; }

/* ==========================================================
   ДОСТИЖЕНИЯ
   ========================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: all .2s cubic-bezier(.22, 1, .36, 1);
  cursor: help;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.achievement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.achievement-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 10px;
  font-size: 1.5rem;
  transition: all .25s cubic-bezier(.34, 1.4, .64, 1);
}

.achievement-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.2;
  transition: color .2s ease;
}

/* ==========================================================
   ✅ HOVER — общий
   ========================================================== */
.achievement:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--bg-3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.achievement:hover::before {
  opacity: 1;
}

.achievement:hover .achievement-icon {
  transform: scale(1.12) rotate(-4deg);
}

.achievement:hover .achievement-title {
  color: var(--text);
}

/* ==========================================================
   ✅ РАЗБЛОКИРОВАННЫЕ — яркий hover
   ========================================================== */
.achievement.is-unlocked {
  border-color: var(--ach-color);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), var(--bg-2));
}

.achievement.is-unlocked .achievement-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ach-color);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.achievement.is-unlocked .achievement-title {
  color: var(--text);
}

.achievement.is-unlocked:hover {
  border-color: var(--ach-color);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), var(--bg-3));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--ach-color),
    0 0 32px -8px var(--ach-color);
}

.achievement.is-unlocked:hover::before {
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, var(--ach-color), transparent 65%);
  opacity: 0.12;
}

.achievement.is-unlocked:hover .achievement-icon {
  transform: scale(1.15) rotate(-6deg);
  box-shadow:
    0 0 24px var(--ach-color),
    0 0 48px -8px var(--ach-color);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   ✅ ЗАБЛОКИРОВАННЫЕ — лёгкий «запрет»
   ========================================================== */
.achievement.is-locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.achievement.is-locked .achievement-icon {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
}

.achievement.is-locked:hover {
  opacity: 0.6;
  filter: grayscale(0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.achievement.is-locked:hover .achievement-icon {
  transform: scale(1.05) rotate(0deg);
  color: var(--text-2);
}

/* ==========================================================
   АДАПТИВ
   ========================================================== */
@media (max-width: 576px) {
  .achievements-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .achievement { padding: 12px 6px; }
  .achievement-icon { width: 36px; height: 36px; font-size: 1.1rem; margin-bottom: 6px; }
  .achievement-title { font-size: 0.65rem; }

  /* Меньше движения на мобильных */
  .achievement:hover { transform: translateY(-2px); }
  .achievement.is-unlocked:hover .achievement-icon { transform: scale(1.08) rotate(-3deg); }
}

/* ==========================================================
   ✅ ДОСТИЖЕНИЯ — TOOLTIP (fixed, всплывающий)
   ========================================================== */

.ach-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;

  min-width: 220px;
  max-width: 320px;
  padding: 12px 16px;

  background: var(--bg-1, #141418);
  border: 1px solid var(--border-2);
  border-radius: var(--r);

  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04);

  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition:
    opacity .18s cubic-bezier(.22, 1, .36, 1),
    transform .18s cubic-bezier(.22, 1, .36, 1);

  /* Скрыто по умолчанию */
  visibility: hidden;
}

.ach-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Заголовок */
.ach-tooltip-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2px;
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Описание */
.ach-tooltip-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Статус (Открыто / Закрыто) */
.ach-tooltip-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ach-tooltip-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Разблокировано — зелёный */
.ach-tooltip[data-status="unlocked"] .ach-tooltip-status {
  background: rgba(123, 201, 111, 0.15);
  color: #7bc96f;
}

.ach-tooltip[data-status="unlocked"] .ach-tooltip-status::before {
  background: #7bc96f;
  box-shadow: 0 0 8px #7bc96f;
}

/* Заблокировано — серый */
.ach-tooltip[data-status="locked"] .ach-tooltip-status {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
}

.ach-tooltip[data-status="locked"] .ach-tooltip-status::before {
  background: var(--text-3);
}

/* Стрелка вниз */
.ach-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--bg-1, #141418);
  border-right: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.ach-tooltip.is-below::after {
  /* Если tooltip снизу — стрелка сверху */
  top: -6px;
  bottom: auto;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--border-2);
  border-top: 1px solid var(--border-2);
}

/* ==========================================================
   ИНВЕНТАРЬ — общий блок информации
   ========================================================== */
.inv-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(224, 52, 44, 0.08), rgba(224, 52, 44, 0.03));
  border: 1px solid rgba(224, 52, 44, 0.25);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.inv-info-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(224, 52, 44, 0.15);
  border: 1px solid rgba(224, 52, 44, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}

.inv-info-text {
  flex: 1;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.inv-info-text b { color: var(--accent); font-weight: 800; }

/* ==========================================================
   ИНВЕНТАРЬ — сетка карточек
   ========================================================== */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ==========================================================
   ИНВЕНТАРЬ — карточка товара
   ========================================================== */
.inv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 14px 14px;
  border-radius: var(--r);
  border: 2px solid var(--border);
  background: var(--bg-2);
  text-align: center;
  transition: all .2s ease;
}

.inv-card:hover { transform: translateY(-3px); }

/* ✅ Источник (МАГАЗИН) — слева сверху */
.inv-source {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  line-height: 1;
}

.inv-source-crate {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.35);
}

.inv-source-bp {
  background: rgba(224, 52, 44, 0.15);
  color: var(--accent);
  border: 1px solid rgba(224, 52, 44, 0.35);
}

.inv-source-premium {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.inv-source-purchase {
  background: rgba(123, 201, 111, 0.15);
  color: var(--green);
  border: 1px solid rgba(123, 201, 111, 0.35);
}

/* ✅ Редкость (ОБЫЧНЫЙ / РЕДКИЙ / ЛЕГЕНДАРНЫЙ) — справа сверху */
.inv-rarity {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  line-height: 1;
}

.inv-rarity-common {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.3);
}

.inv-rarity-rare {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.inv-rarity-legendary {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* Рамка карточки по редкости */
.inv-card-common { border-color: rgba(102, 192, 244, 0.4); background: linear-gradient(180deg, rgba(102, 192, 244, 0.05), var(--bg-2)); }
.inv-card-common:hover { border-color: rgba(102, 192, 244, 0.7); box-shadow: 0 8px 28px rgba(102, 192, 244, 0.22); }

.inv-card-rare { border-color: rgba(168, 85, 247, 0.5); background: linear-gradient(180deg, rgba(168, 85, 247, 0.07), var(--bg-2)); }
.inv-card-rare:hover { border-color: rgba(168, 85, 247, 0.8); box-shadow: 0 8px 28px rgba(168, 85, 247, 0.28); }

.inv-card-legendary { border-color: rgba(239, 68, 68, 0.55); background: linear-gradient(180deg, rgba(239, 68, 68, 0.09), var(--bg-2)); box-shadow: 0 0 14px rgba(239, 68, 68, 0.18); }
.inv-card-legendary:hover { border-color: rgba(239, 68, 68, 0.9); box-shadow: 0 8px 32px rgba(239, 68, 68, 0.35); }

/* ✅ Картинка */
.inv-img-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.inv-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.inv-card:hover .inv-img { transform: scale(1.08); }

/* Название и количество */
.inv-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.inv-amount {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
}

/* ==========================================================
   ИНВЕНТАРЬ — кнопка «Забрать»
   ========================================================== */
.inv-claim-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 14px;
  margin-top: auto;
  background: var(--accent-grad);
  border: none;
  border-radius: var(--r);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(224, 52, 44, 0.25);
}

.inv-claim-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left .5s ease;
}

.inv-claim-btn:hover:not(:disabled)::before { left: 100%; }

.inv-claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(224, 52, 44, 0.4);
}

.inv-claim-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.inv-claim-btn i { font-size: 1rem; line-height: 1; }

/* ==========================================================
   ✅ ВАЙП-ГЕЙТ: заблокированные предметы
   ========================================================== */
.inv-card.is-locked {
  opacity: 0.85;
  border-style: dashed;
}

.inv-card.is-locked .inv-img {
  filter: grayscale(0.75) brightness(0.7);
}

/* Значок замка в углу */
.inv-lock-icon {
  position: absolute;
  top: 40px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(224, 52, 44, 0.15);
  border: 1px solid rgba(224, 52, 44, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 11px;
  z-index: 3;
  pointer-events: none;
}

/* Заблокированная кнопка */
.inv-claim-btn.is-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--bg-3);
  color: var(--text-3);
  box-shadow: none;
  cursor: not-allowed;
  padding: 8px 12px;
  min-height: 46px;
}

.inv-claim-btn.is-locked:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-3);
}

.inv-claim-btn.is-locked .inv-claim-btn-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  line-height: 1;
}

.inv-claim-btn.is-locked .inv-claim-btn-timer {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
  opacity: 0.95;
  line-height: 1;
  white-space: nowrap;
}

/* Пустой инвентарь */
.inv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.inv-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--accent);
  background: radial-gradient(circle, rgba(224, 52, 44, 0.15) 0%, rgba(224, 52, 44, 0.03) 70%);
  border: 2px solid rgba(224, 52, 44, 0.3);
  box-shadow: 0 0 40px rgba(224, 52, 44, 0.18);
  margin-bottom: 20px;
  animation: invEmptyFloat 3s ease-in-out infinite;
}

@keyframes invEmptyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.inv-empty-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.inv-empty-text {
  font-size: 0.9rem;
  color: var(--text-3);
  margin: 0 0 20px;
  max-width: 400px;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .inv-info { padding: 12px 14px; }
  .inv-info-text { font-size: 0.82rem; }
  .inv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .inv-img-wrap { width: 70px; height: 70px; }
  .inv-name { font-size: 0.82rem; }
  .inv-amount { font-size: 0.9rem; }
  .inv-claim-btn { font-size: 0.8rem; padding: 9px 12px; }
}

/* ==========================================================
   МЕНЮ ПРОФИЛЯ — АДМИН
   ========================================================== */
.header-menu-item.is-admin {
  color: var(--accent);
}

.header-menu-item.is-admin i {
  color: var(--accent);
}

.header-menu-item.is-admin:hover {
  background: rgba(224, 52, 44, 0.08);
}

/* ==========================================================
   МОДАЛКА ВЫБОРА СЕРВЕРА
   ========================================================== */
.srv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow-y: auto;
}

.srv-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.srv-modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  transform: translateY(-8px) scale(.98);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}

.srv-modal-backdrop.is-open .srv-modal {
  transform: translateY(0) scale(1);
}

.srv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.srv-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.srv-modal-title i { color: var(--accent); font-size: 16px; }

.srv-modal-close {
  width: 30px;
  height: 30px;
  padding: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all .15s;
}

.srv-modal-close:hover {
  color: var(--text);
  background: var(--bg-3);
  transform: rotate(90deg);
}

.srv-modal-body {
  padding: 18px 20px 20px;
}

.srv-modal-text {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 6px;
}

.srv-modal-text b { color: var(--text); font-weight: 700; }

.srv-modal-hint {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 16px;
  line-height: 1.5;
}

.srv-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.srv-modal-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .18s;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
}

.srv-modal-option:hover:not(:disabled) {
  background: var(--bg-3);
  border-color: var(--accent-30);
  transform: translateY(-1px);
}

.srv-modal-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.srv-modal-option-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
}

.srv-modal-option-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.srv-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(224, 52, 44, 0.15);
  color: var(--accent);
  font-size: 9px;
  margin-left: 6px;
  flex-shrink: 0;
}

/* ==========================================================
   ИНВЕНТАРЬ — старые бейджи (для совместимости, скрыты)
   ========================================================== */
.inv-lock-badge {
  display: none;
}