/* =====================================================
       INVENTORY BAR
    ===================================================== */

    /* =====================================================
       TOP NAV
    ===================================================== */
/* =====================================================
       PROFILE PAGE
    ===================================================== */
    .profile-page {
      min-height: calc(100vh - 160px);
      padding-bottom: 40px;
      width: 100%;
      min-width: 0;
    }
    .profile-page .contents {
      width: min(100%, 1280px);
      max-width: 100%;
      min-width: 0;
    }

    .profile-page .breadcrumb-home {
      background: transparent;
      border: 0;
      border-radius: 0;
      color: #e2a915;
    }

    .profile-page .breadcrumb-home:hover {
      background: transparent;
      border: 0;
      color: #e2a915;
    }

    .profile-page .breadcrumb-home svg {
      fill: none;
      stroke: currentColor;
    }

    /* =====================================================
       PROFILE INFO SECTION
    ===================================================== */
    .profile-info-section {
      padding: 20px 24px 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
      gap: 16px;
      max-width: 1400px;
      margin: 0 auto;
      box-sizing: border-box;
    }
    .profile-info-section > * {
      min-width: 0;
    }
    .public-profile-page .profile-info-section {
      grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
      justify-content: stretch;
    }

    .public-profile-page .contents {
      width: min(100%, 1280px);
    }

    .public-profile-page .profile-user-row {
      margin-bottom: 18px;
    }

    .public-profile-page .profile-balance-val {
      font-size: 20px;
    }

    .public-profile-page .progress-label-row {
      gap: 8px;
    }

    .public-profile-page .progress-label {
      white-space: normal;
    }

    .public-best-drop-card {
      min-height: 100%;
    }

    .public-inventory-section {
      margin-top: 26px;
    }

    .public-inventory-section .inventory-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 18px;
    }

    .public-inventory-toolbar {
      align-items: center;
      gap: 20px;
      margin-bottom: 22px;
    }

    .public-inventory-section .inventory-title {
      font-size: 18px;
      font-weight: 800;
      color: #fff;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .public-inventory-title {
      margin-left: auto;
      opacity: 0.9;
    }

    .public-profile-page .upgrade-card,
    .public-profile-page .contract-result-card {
      color: inherit;
      text-decoration: none;
    }

    .profile-stats-block {
      grid-template-columns: repeat(3, 1fr);
    }

    /* =====================================================
       LEFT CARD
    ===================================================== */
    .profile-card {
      background: linear-gradient(180deg, #1a1a2e 0%, #15152a 100%);
      border: 1px solid #2a2a40;
      border-radius: 16px;
      padding: 24px;
      min-width: 0;
    }

    /* User row contains: avatar + (name/balance) + actions on the right */
    .profile-user-row {
      display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px;
      min-width: 0;
    }
    .profile-avatar-wrap {
      width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
      border: 2px solid rgba(255,215,0,0.3);
    }
    .profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
    .profile-user-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .profile-username-row { display: flex; align-items: center; gap: 6px; }
    .profile-username { font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .profile-verified {
      width: 18px; height: 18px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .profile-verified svg { width: 18px; height: 18px; }
    .profile-balance-row { display: flex; align-items: center; gap: 8px; }
    .profile-balance-val { font-size: 22px; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: 0.5px; }
    .profile-balance-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

    /* =====================================================
       PROFILE ACTION BUTTONS — desktop: inline with user-row on the right
    ===================================================== */
    .profile-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      flex: 1 0 100%;
      width: 100%;
      margin-left: 0;
      align-items: center;
    }

    .profile-action-btn {
      padding: 14px 28px;
      border-radius: 10px;
      border: none;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      white-space: nowrap;
      flex: 0 0 auto;
      min-width: 0;
      width: 100%;
    }
    .profile-action-btn.primary {
      background: linear-gradient(135deg, #FFD700, #FFA500);
      color: #ffffff;
    }
    .profile-action-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,215,0,0.4); }
    .profile-action-btn.primary .btn-plus {
      font-size: 18px; font-weight: 900; line-height: 1; margin-right: 2px;
    }

    .profile-action-btn.secondary {
      padding: 14px 22px;
      background: transparent;
      border: 1px solid #3a3a55;
      color: #ffffff;
    }
    .profile-action-btn.secondary:hover { border-color: #6a6a88; background: rgba(255,255,255,0.04); }
    .profile-action-btn.secondary img { width: 14px; height: 14px; }

    .profile-action-btn.primary-icon,
    .profile-action-btn.secondary-icon {
      display: none;
    }

    /* =====================================================
       PROGRESS LIST
    ===================================================== */
    .profile-progress-list { display: flex; flex-direction: column; gap: 14px; }
    .progress-item { display: flex; align-items: center; gap: 14px; }

    /* Все бейджи (LVL + иконки) — одинаковая pill-форма, синевато-серая */
    .progress-level-badge,
    .progress-icon-badge {
      width: 60px;
      height: 32px;
      border-radius: 24px;
      background: linear-gradient(180deg, #2a3148 0%, #232940 100%);
      border: 1px solid #313a55;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .progress-level-badge {
      font-size: 11px; font-weight: 700; color: #8e9bb8;
      letter-spacing: 0.5px;
    }
    .progress-level-badge.lv {
      /* Same look as others - no green */
      background: linear-gradient(180deg, #2a3148 0%, #232940 100%);
      border: 1px solid #313a55;
      color: #8e9bb8;
    }
    .progress-icon-badge img {
      width: 16px; height: 16px; object-fit: contain; opacity: 0.7;
    }

    .progress-content { flex: 1; min-width: 0; }
    .progress-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .progress-label { font-size: 13px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .progress-label .muted { color: #8888aa; }
    .progress-info {
      width: 18px; height: 18px;
      border-radius: 50%;
      border: 1px solid #3a3a55;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; flex-shrink: 0;
      color: #8888aa; font-size: 10px; font-weight: 600;
      background: transparent;
      appearance: none;
      font-family: inherit;
      padding: 0;
      position: relative;
    }
    .progress-info:hover { color: #fff; border-color: #6a6a88; }
    .progress-info.is-open,
    .progress-info:focus-visible {
      color: #fff;
      border-color: #FFD700;
      outline: none;
    }
    .progress-info.is-open::after,
    .progress-info:focus-visible::after {
      content: attr(data-profile-tooltip);
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
      z-index: 20;
      width: min(240px, 75vw);
      padding: 10px 12px;
      border: 1px solid #3a3a55;
      border-radius: 8px;
      background: #17172b;
      color: #fff;
      font-size: 12px;
      font-weight: 500;
      line-height: 1.35;
      text-align: left;
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }
    .progress-meter-row {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    .progress-bar-wrap { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
    .progress-meter-row .progress-bar-wrap {
      flex: 1 1 auto;
      min-width: 0;
    }
    .progress-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
    .progress-bar-fill.xp       { background: linear-gradient(90deg, #4BB543, #6dd663); width: 5%; }
    .progress-bar-fill.upgrade  { background: linear-gradient(90deg, #FFD700, #FFA500); width: 50%; }
    .progress-bar-fill.contract { background: linear-gradient(90deg, #FFD700, #FFA500); width: 33%; }
    .progress-bar-fill.case     { background: linear-gradient(90deg, #FFD700, #FFA500); width: 10%; }
    .level-reward-form {
      flex: 0 0 auto;
      margin: 0;
    }
    .level-reward-btn {
      min-width: 96px;
      height: 32px;
      padding: 0 18px;
      border: 0;
      border-radius: 8px;
      background: linear-gradient(180deg, #ffd95a 0%, #eea300 100%);
      color: #fff;
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 14px rgba(238,163,0,0.2);
      transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
      white-space: nowrap;
    }
    .level-reward-btn:hover {
      transform: translateY(-1px);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 18px rgba(238,163,0,0.28);
    }
    .level-reward-btn:disabled {
      cursor: default;
      opacity: 0.65;
      transform: none;
      box-shadow: none;
    }

    /* =====================================================
       MIDDLE CARDS
    ===================================================== */
    .profile-middle { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

    .coupon-card, .email-card, .trade-url-card {
      background: linear-gradient(180deg, #1a1a2e 0%, #15152a 100%);
      border: 1px solid #2a2a40;
      border-radius: 16px;
      padding: 20px;
      flex: 1;
      min-width: 0;
    }

    .card-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

    .card-title-icon {
      width: 32px; height: 32px; border-radius: 8px;
      background: rgba(255,215,0,0.12); border: 1px solid rgba(255,215,0,0.25);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
      font-size: 16px; font-weight: 900; color: #FFD700; line-height: 1;
    }
    .card-title-icon img { width: 18px; height: 18px; object-fit: contain; }

    .card-title-text { font-size: 11px; color: #8888aa; text-transform: uppercase; letter-spacing: 0.5px; }
    .card-subtitle { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 14px; }
    .card-input-wrap { position: relative; }
    .card-input-wrap input {
      width: 100%; background: transparent; border: none; border-bottom: 1px solid #2a2a40;
      color: #ffffff; font-size: 13px; padding: 10px 36px 10px 0; outline: none;
      transition: border-color 0.2s; font-family: inherit;
    }
    .card-input-wrap input::placeholder { color: #4a5468; }
    .card-input-wrap input:focus { border-bottom-color: #FFD700; }
    .card-input-btn {
      position: absolute; right: 0; top: 50%; transform: translateY(-50%);
      width: 28px; height: 28px; background: transparent; border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 700; color: #8888aa; transition: color 0.2s;
    }
    .card-input-btn:hover { color: #FFD700; }
    .card-input-btn svg { width: 18px; height: 18px; }
    .card-form-message {
      margin-top: 10px;
      font-size: 12px;
      line-height: 1.35;
    }
    .card-form-message.success { color: #55d66b; }
    .card-form-message.error { color: #ff6b6b; }

    .trade-url-card {
      flex: 0 0 auto;
    }

    .profile-ticket-link {
      display: block;
      text-decoration: none;
    }

    .trade-url-card.is-highlighted {
      border-color: rgba(255,215,0,0.75);
      box-shadow: 0 0 0 1px rgba(255,215,0,0.2), 0 10px 30px rgba(0,0,0,0.18);
    }

    .profile-modal[hidden] {
      display: none !important;
    }

    .profile-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      box-sizing: border-box;
    }

    .profile-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(7, 8, 18, 0.72);
      backdrop-filter: blur(3px);
    }

    .profile-modal-card {
      position: relative;
      z-index: 1;
      width: min(420px, 100%);
      border: 1px solid #2a2a40;
      border-radius: 16px;
      background: #15152a;
      padding: 22px;
      box-shadow: 0 24px 70px rgba(0,0,0,0.45);
      color: #fff;
      box-sizing: border-box;
    }

    .profile-modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 28px;
      height: 28px;
      border: 1px solid #34344e;
      border-radius: 8px;
      background: transparent;
      color: #8888aa;
      cursor: pointer;
      font-size: 20px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: inherit;
    }

    .profile-modal-close:hover {
      color: #fff;
      border-color: #6a6a88;
    }

    .profile-modal-title {
      margin: 0 36px 18px 0;
      font-size: 20px;
      font-weight: 800;
    }

    .deposit-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .deposit-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      color: #8888aa;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .deposit-field input {
      width: 100%;
      height: 46px;
      border: 1px solid #2a2a40;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      color: #fff;
      padding: 0 14px;
      box-sizing: border-box;
      font-size: 15px;
      font-family: inherit;
      outline: none;
    }

    .deposit-field input:focus {
      border-color: #FFD700;
    }

    .deposit-quick-amounts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .deposit-quick-amounts button {
      height: 38px;
      border: 1px solid #34344e;
      border-radius: 10px;
      background: rgba(255,255,255,0.035);
      color: #fff;
      cursor: pointer;
      font-weight: 700;
      font-family: inherit;
    }

    .deposit-quick-amounts button:hover {
      border-color: #FFD700;
      color: #FFD700;
    }

    .deposit-submit-btn {
      width: 100%;
      height: 46px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, #FFD700, #FFA500);
      color: #fff;
      cursor: pointer;
      font-size: 15px;
      font-weight: 800;
      font-family: inherit;
    }

    .deposit-submit-btn:disabled,
    .card-input-btn:disabled {
      cursor: progress;
      opacity: 0.65;
    }

    /* =====================================================
       RIGHT CARD — BEST DROP
    ===================================================== */
    .best-drop-card {
      background: linear-gradient(180deg, #1a1a2e 0%, #15152a 100%);
      border: 1px solid #2a2a40;
      border-radius: 16px;
      padding: 20px;
      display: flex; flex-direction: column; align-items: center;
      position: relative;
      min-width: 0;
    }

    .best-drop-title {
      font-size: 18px; font-weight: 700; color: #ffffff;
      margin-bottom: 0; align-self: flex-start;
    }

    .best-drop-price {
      display: flex; align-items: center; gap: 5px;
      font-size: 14px; font-weight: 700; color: #4BB543;
      position: absolute; top: 20px; right: 20px;
    }
    .best-drop-price .coin-dot {
      width: 10px; height: 10px; background: #4BB543; border-radius: 50%; display: inline-block; flex-shrink: 0;
    }

    .best-drop-img-wrap {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      position: relative;
      margin: 16px 0 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .best-drop-img-wrap::before {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(210,120,20,0.35) 0%, rgba(20,20,40,0) 70%);
      z-index: 0;
    }
    .best-drop-img-circle {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      z-index: 0;
      opacity: 0.95;
      background: radial-gradient(circle at 50% 35%, rgba(136,136,170,0.45) 0%, rgba(136,136,170,0.12) 45%, rgba(18,20,34,0.92) 100%);
    }
    .best-drop-gun {
      width: 130px;
      height: 90px;
      object-fit: contain;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    }

    .best-drop-name { font-size: 13px; color: #8888aa; margin-bottom: 2px; align-self: flex-start; width: 100%; }
    .best-drop-subname {
      font-size: 16px; font-weight: 700; color: #ffffff;
      margin-bottom: 16px;
      align-self: flex-start;
      width: 100%;
      padding-bottom: 10px;
      border-bottom: 1px solid #FFD700;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .best-drop-img-circle.yellow { background: radial-gradient(circle at 50% 35%, rgba(255,215,0,0.55) 0%, rgba(255,215,0,0.16) 45%, rgba(18,20,34,0.94) 100%); }
    .best-drop-img-circle.purple { background: radial-gradient(circle at 50% 35%, rgba(151,93,248,0.55) 0%, rgba(151,93,248,0.16) 45%, rgba(18,20,34,0.94) 100%); }
    .best-drop-img-circle.red { background: radial-gradient(circle at 50% 35%, rgba(235,75,75,0.55) 0%, rgba(235,75,75,0.16) 45%, rgba(18,20,34,0.94) 100%); }
    .best-drop-img-circle.blue { background: radial-gradient(circle at 50% 35%, rgba(75,105,255,0.55) 0%, rgba(75,105,255,0.16) 45%, rgba(18,20,34,0.94) 100%); }
    .best-drop-img-circle.gray { background: radial-gradient(circle at 50% 35%, rgba(136,136,170,0.55) 0%, rgba(136,136,170,0.16) 45%, rgba(18,20,34,0.94) 100%); }
    .best-drop-img-circle.green { background: radial-gradient(circle at 50% 35%, rgba(75,181,67,0.55) 0%, rgba(75,181,67,0.16) 45%, rgba(18,20,34,0.94) 100%); }
    .best-drop-subname.yellow { border-bottom-color: #FFD700; }
    .best-drop-subname.purple { border-bottom-color: #975DF8; }
    .best-drop-subname.red { border-bottom-color: #eb4b4b; }
    .best-drop-subname.blue { border-bottom-color: #4b69ff; }
    .best-drop-subname.gray { border-bottom-color: #8888aa; }
    .best-drop-subname.green { border-bottom-color: #4BB543; }
    .best-drop-btn {
      width: 100%; background: linear-gradient(135deg, #FFD700, #FFA500); border: none;
      padding: 12px 24px; border-radius: 10px;
      color: #FFFFFF; font-weight: 700; font-size: 15px; cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s; margin-top: auto;
      display: block;
      box-sizing: border-box;
      text-align: center;
      text-decoration: none;
      font-family: inherit;
    }
    .best-drop-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,215,0,0.4); }

    /* =====================================================
       INVENTORY TABS
    ===================================================== */
    .inventory-section {
      padding: 28px 24px 0;
      width: 100%;
      max-width: 1400px; margin: 0 auto;
      min-width: 0;
      box-sizing: border-box;
    }
    .inventory-toolbar {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
      min-width: 0;
    }
    .inventory-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
    .inv-tab {
      display: flex; align-items: center; gap: 7px; padding: 8px 16px;
      cursor: pointer; border-radius: 8px; transition: all 0.2s; color: #8888aa;
      font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent;
      min-width: 0;
    }
    .inv-tab:hover { color: #ffffff; }
    .inv-tab.active { color: #FFD700; border-bottom-color: #FFD700; }
    .inv-tab img { width: 16px; height: 16px; object-fit: contain; opacity: 0.6; }
    .inv-tab.active img { opacity: 1; filter: brightness(0) saturate(100%) invert(85%) sepia(70%) saturate(400%) hue-rotate(1deg); }
    .inv-tab-count { font-size: 11px; opacity: 0.7; }

    .inventory-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
    .inv-balance-badge {
      display: flex; align-items: center; gap: 5px; padding: 6px 12px;
      background: rgba(255,215,0,0.08); border: 1px solid rgba(255,215,0,0.2); border-radius: 8px;
      font-size: 13px; font-weight: 700; color: #FFD700;
    }
    .inv-balance-badge .coin-dot { width: 10px; height: 10px; background: #FFD700; border-radius: 50%; display: inline-block; }
    .inv-toggle-wrap {
      display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent;
      font: inherit; font-size: 12px; color: #8888aa; cursor: pointer;
    }
    .inv-toggle {
      width: 36px; height: 20px; border-radius: 10px;
      background: #4BB543; position: relative; cursor: pointer; transition: background 0.2s;
    }
    .inv-toggle::after {
      content: ''; position: absolute; top: 3px; right: 3px;
      width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: right 0.2s;
    }
    .inv-toggle-wrap:not(.is-active) .inv-toggle { background: #2a2a40; }
    .inv-toggle-wrap:not(.is-active) .inv-toggle::after { right: 19px; }
    .inv-sell-all {
      display: flex; align-items: center; gap: 6px; padding: 6px 12px;
      background: rgba(255,255,255,0.03); border: 1px solid #2a2a40; border-radius: 8px;
      font-size: 12px; color: #8888aa; cursor: pointer; transition: all 0.2s;
    }
    .inv-sell-all:hover { border-color: #4a4a7a; color: #fff; }
    .inv-sell-all:disabled { opacity: 0.5; cursor: not-allowed; }
    .inv-sell-all:disabled:hover { border-color: #2a2a40; color: #8888aa; }
    .inv-sell-all img { width: 14px; height: 14px; object-fit: contain; opacity: 0.6; }

    /* =====================================================
       INVENTORY GRID — SKINS
       На скриншоте: цена с короной СПРАВА сверху, в углу.
       Иконки действий (выгрузка/свап/корзина) — слева у первой карточки.
    ===================================================== */
    /* =====================================================
       SKIN CARDS — без фона, без рамок, без скругления
       Карточка лежит прямо на фоне страницы.
       Цветная полоска — под именем, не под карточкой.
       Иконки действий: всегда видны у .first, на остальных — на hover.
    ===================================================== */
    .inventory-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(108px, 100%), 1fr));
      gap: 14px 16px;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
    .inventory-grid > * {
      min-width: 0;
    }

    .skin-card {
      position: relative;
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 26px 0 0;
      display: flex; flex-direction: column; align-items: stretch;
      cursor: pointer;
      transition: transform 0.2s;
      min-width: 0;
      max-width: 100%;
    }
    .skin-card:hover { transform: translateY(-2px); }
    .public-winning-card {
      color: inherit;
      text-decoration: none;
    }

    /* Цена СПРАВА сверху над картинкой */
    .skin-card-price {
      position: absolute;
      top: 0;
      right: 0;
      display: flex; align-items: center; gap: 5px;
      font-size: 11px; color: #4BB543; font-weight: 600;
      line-height: 1;
      transition: opacity 0.18s ease;
    }
    .skin-card-price .price-coin {
      width: 12px; height: 12px;
      object-fit: contain;
      flex-shrink: 0;
      display: inline-block;
    }

    /* Иконки действий — СЛЕВА сверху */
    .skin-card-actions {
      position: absolute;
      top: 0;
      left: 0;
      display: flex;
      align-items: center;
      gap: 4px;
      z-index: 2;
      opacity: 0;
      transition: opacity 0.18s ease;
      pointer-events: none;
    }
    /* Появляются при наведении на любую карточку */
    .skin-card:hover .skin-card-actions { opacity: 1; pointer-events: auto; }
    .skin-card:hover .skin-card-price { opacity: 0; }

    .skin-action-btn {
      width: 22px; height: 22px; border-radius: 5px;
      background: rgba(255,255,255,0.04);
      border: 1px solid #2a2a44;
      padding: 0;
      appearance: none;
      color: inherit;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.15s;
    }
    .skin-action-btn:hover { background: rgba(255,255,255,0.1); border-color: #4a4a7a; }
    .skin-action-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .skin-action-btn img { width: 11px; height: 11px; object-fit: contain; opacity: 0.75; }
    .skin-action-btn.text-btn {
      font-size: 12px; font-weight: 700; color: #8888aa;
    }
    .skin-action-btn.text-btn:hover { color: #fff; }
    .skin-card.unavailable { opacity: 0.62; }
    .skin-card-status {
      position: absolute; right: 10px; bottom: 60px; z-index: 2;
      padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,0.42);
      color: #b8b8cc; font-size: 11px; font-weight: 700;
    }

    /* "24" рядом с иконками — счётчик только у первой карточки */
    .skin-card-count {
      position: absolute;
      top: 2px;
      left: 86px;
      display: none;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      color: #8888aa;
      font-weight: 600;
      line-height: 1;
    }
    .skin-card-count .count-coin {
      width: 12px; height: 12px;
      object-fit: contain;
      flex-shrink: 0;
    }
    /* .skin-card.first .skin-card-count { display: flex; } */

    /* Круг с изображением скина */
    .skin-card-img-wrap {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      margin-bottom: 10px;
    }
    .skin-card-bg-img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; z-index: 0;
    }
    .skin-card-img {
      position: relative;
      width: 78%; height: 60%;
      object-fit: contain;
      z-index: 1;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    }

    /* Имя + подпись с цветной нижней полоской */
    .skin-card-name {
      font-size: 11px;
      color: #8888aa;
      text-align: left;
      width: 100%;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      margin-bottom: 2px;
    }
    .skin-card-subname {
      font-size: 12px;
      color: #fff;
      font-weight: 700;
      text-align: left;
      width: 100%;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      padding-bottom: 6px;
      border-bottom: 1px solid;
    }
    .skin-card.yellow .skin-card-subname { border-bottom-color: #FFD700; }
    .skin-card.purple .skin-card-subname { border-bottom-color: #975DF8; }
    .skin-card.red    .skin-card-subname { border-bottom-color: #eb4b4b; }
    .skin-card.blue   .skin-card-subname { border-bottom-color: #4b69ff; }
    .skin-card.gray   .skin-card-subname { border-bottom-color: #8888aa; }

    /* =====================================================
       UPGRADE CARDS
       Каждая карточка — два ствола БОК-О-БОК со стрелкой между ними.
       Цена над КАЖДЫМ стволом справа.
       Имена под КАЖДЫМ стволом отдельно.
       Шанс / Выигрыш-Проигрыш снизу с разделителем.
       6 карточек в ряд (3+3 = 6 на ряд по скриншоту).
    ===================================================== */
    .inventory-grid.grid-upgrade {
      grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
      gap: 16px;
    }
    .upgrade-card {
      position: relative;
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 0;
      display: flex; flex-direction: column;
      cursor: pointer; transition: all 0.2s;
      min-width: 0;
    }
    .upgrade-card:hover { transform: translateY(-2px); }

    /* Ряд: цена слева | (пустота) | цена справа */
    .upgrade-prices-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
      align-items: center;
      gap: 2px;
      margin-bottom: 4px;
      min-width: 0;
    }
    .upgrade-price {
      font-size: 10px; font-weight: 600; color: #4BB543;
      display: flex; align-items: center; gap: 3px;
      white-space: nowrap;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .upgrade-price img.price-crown {
      width: 11px; height: 11px; object-fit: contain; flex-shrink: 0;
    }
    .upgrade-price.left  { justify-content: flex-end; }
    .upgrade-price.right { justify-content: flex-end; }
    .upgrade-prices-spacer { width: 26px; }

    /* Ряд: ствол | стрелка | ствол */
    .upgrade-guns-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
      align-items: center;
      gap: 2px;
      margin-bottom: 6px;
      min-width: 0;
    }
    .upgrade-gun-slot {
      display: flex; align-items: center; justify-content: center;
      position: relative;
      min-width: 0;
    }
    .upgrade-gun-bg {
      width: 100%; aspect-ratio: 1;
      border-radius: 50%;
      overflow: hidden;
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .upgrade-gun-bg img.gun-bg-img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover;
    }
    .upgrade-gun-bg img.gun-img {
      position: relative; z-index: 1;
      width: 84%; height: auto; object-fit: contain;
      filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    }
    .history-operation-metric {
      flex-direction: column;
      gap: 3px;
      isolation: isolate;
    }
    .history-operation-metric .history-operation-value,
    .history-operation-metric .history-operation-label {
      position: relative;
      z-index: 1;
      max-width: 82%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
    }
    .history-operation-metric .history-operation-value {
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.1;
    }
    .history-operation-metric .history-operation-label {
      color: #b8b8cc;
      font-size: 10px;
      font-weight: 600;
      line-height: 1.1;
    }
    .upgrade-arrow-btn {
      width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      border: none; cursor: pointer; transition: transform 0.2s;
      color: #fff; z-index: 2;
    }
    .upgrade-arrow-btn:hover { transform: scale(1.15); }
    .upgrade-arrow-btn.win  { background: #4BB543; box-shadow: 0 0 10px rgba(75,181,67,0.5); }
    .upgrade-arrow-btn.lose { background: #eb4b4b; box-shadow: 0 0 10px rgba(235,75,75,0.5); }
    .upgrade-arrow-btn svg { width: 11px; height: 11px; fill: #fff; }

    /* Имена под каждым стволом */
    .upgrade-names-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
      gap: 2px;
      margin-bottom: 8px;
      align-items: start;
      min-width: 0;
    }
    .upgrade-gun-name-block { min-width: 0; }
    .upgrade-gun-name { font-size: 9px; color: #8888aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 1px; }
    .upgrade-gun-sub  { font-size: 11px; color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid; }
    .upgrade-gun-name-block.yellow .upgrade-gun-sub { border-color: #FFD700; }
    .upgrade-gun-name-block.purple .upgrade-gun-sub { border-color: #975DF8; }
    .upgrade-gun-name-block.red    .upgrade-gun-sub { border-color: #eb4b4b; }
    .upgrade-gun-name-block.blue   .upgrade-gun-sub { border-color: #4b69ff; }
    .upgrade-gun-name-block.gray   .upgrade-gun-sub { border-color: #8888aa; }
    .upgrade-names-spacer { width: 26px; }

    /* Низ карточки */
    .upgrade-card-footer {
      display: flex; align-items: center; justify-content: space-between;
      border-top: 1px solid rgba(255,255,255,0.08); padding-top: 7px;
      font-size: 11px;
    }
    .upgrade-chance { color: #8888aa; }
    .upgrade-chance b { color: #fff; font-weight: 600; }
    .upgrade-result { font-weight: 700; }
    .upgrade-result.win  { color: #4BB543; }
    .upgrade-result.lose { color: #eb4b4b; }

    /* =====================================================
       CONTRACT CARDS — 1:1 со скриншотом
       Группа = 4 колонки: 3 равные входные + result чуть шире (1.35x).
       Каждая входная колонка имеет цветное подчёркивание под Emphorosaur-S
       (жёлтое/красное), под ним — футер (пагинация/шанс/выигрыш).
       Result card тёмная, тянется на полную высоту группы, подчёркивание
       внизу карточки на уровне футера входных.
    ===================================================== */
    .inventory-grid.grid-contract {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
      gap: 32px 40px;
    }

    .contract-group {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
      column-gap: clamp(8px, 1.4vw, 18px);
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      min-width: 0;
      max-width: 100%;
    }

    /* Входная колонка */
    .contract-col {
      display: flex;
      flex-direction: column;
      padding-top: 22px;
      position: relative;
      min-width: 0;
    }

    .contract-mini-price {
      position: absolute;
      top: 0; right: 0;
      display: flex; align-items: center; gap: 5px;
      font-size: 11px; color: #4BB543; font-weight: 600;
      line-height: 1;
    }
    .contract-mini-price .price-coin {
      width: 12px; height: 12px; object-fit: contain; flex-shrink: 0;
    }

    .contract-mini-img-wrap {
      width: 100%; aspect-ratio: 1;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      margin-bottom: 10px;
    }
    .contract-mini-bg {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; z-index: 0;
    }
    .contract-mini-gun {
      position: relative; z-index: 1;
      width: 78%; height: 60%; object-fit: contain;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    }

    .contract-mini-name {
      font-size: 11px; color: #8888aa;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      margin-bottom: 3px;
    }
    .contract-mini-sub {
      font-size: 13px; color: #fff; font-weight: 700;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      padding-bottom: 8px;
      border-bottom: 2px solid;
    }
    .contract-col.yellow .contract-mini-sub { border-color: #FFD700; }
    .contract-col.red    .contract-mini-sub { border-color: #eb4b4b; }
    .contract-col.purple .contract-mini-sub { border-color: #975DF8; }
    .contract-col.blue   .contract-mini-sub { border-color: #4b69ff; }
    .contract-col.gray   .contract-mini-sub { border-color: #8888aa; }

    /* Футер колонки */
    .contract-footer-cell {
      display: flex; align-items: center; justify-content: space-between;
      font-size: 12px;
      color: #8888aa;
      margin-top: 14px;
      min-height: 18px;
    }
    .contract-pagination {
      display: flex; align-items: center; gap: 8px;
      color: #4a4a6a;
      font-size: 13px;
    }
    .contract-pagination .arrow { cursor: pointer; }
    .contract-pagination .arrow:hover { color: #fff; }
    .contract-pagination .current { color: #8888aa; font-weight: 500; }
    .contract-chance { color: #8888aa; }
    .contract-chance b { color: #8888aa; font-weight: 600; margin-left: 6px; }
    .contract-win  { color: #4BB543; font-weight: 600; }
    .contract-lose { color: #eb4b4b; font-weight: 600; }

    /* Result card — тёмная подложка, растягивается на всю высоту группы */
    .contract-result-card {
      position: relative;
      background: #15152a;
      border: none;
      border-radius: 6px;
      padding: 22px 14px 12px;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      align-self: stretch;
      cursor: pointer;
      transition: background 0.2s;
      min-width: 0;
    }
    .contract-result-card:hover { background: #1a1a30; }

    .contract-result-card .contract-mini-price {
      position: static;
      align-self: center;
      margin-bottom: 8px;
    }
    .contract-result-card .contract-mini-img-wrap {
      margin-bottom: auto;
    }
    .contract-result-card .contract-mini-name {
      margin-top: 12px;
    }
    .contract-result-card .contract-mini-sub {
      border-bottom: 2px solid;
    }
    .contract-result-card.yellow .contract-mini-sub { border-color: #FFD700; }
    .contract-result-card.red    .contract-mini-sub { border-color: #eb4b4b; }
    .contract-result-card.purple .contract-mini-sub { border-color: #975DF8; }
    .contract-result-card.blue   .contract-mini-sub { border-color: #4b69ff; }
    .contract-result-card.gray   .contract-mini-sub { border-color: #8888aa; }

/* =====================================================
       RESPONSIVE
    ===================================================== */
    @media (max-width: 1100px) {
      .profile-info-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .public-profile-page .profile-info-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .best-drop-card {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding: 20px 28px;
        color: #ffffff;!important;
      }
      .best-drop-title { margin-bottom: 0; }
      .best-drop-img-wrap { flex-shrink: 0; margin: 0; }
      .best-drop-name, .best-drop-subname { align-self: auto; }
      .best-drop-btn { width: auto; padding: 12px 32px; margin-top: 0; }
      .profile-user-row {
        flex-wrap: nowrap;
      }
      .profile-actions {
        display: flex;
        flex: 0 0 auto;
        width: auto;
        gap: 8px;
        margin-left: auto;
      }
      .profile-action-btn.primary,
      .profile-action-btn.secondary { display: none; }
      .profile-action-btn.primary-icon,
      .profile-action-btn.secondary-icon { display: flex; }
      .profile-action-btn.primary-icon {
        width: 46px; height: 46px; padding: 0; flex: 0 0 auto;
        border-radius: 12px;
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #1a1a2e; border: none;
        font-size: 24px; font-weight: 900;
        align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s;
      }
      .profile-action-btn.primary-icon:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,215,0,0.4); }
      .profile-action-btn.secondary-icon {
        width: 46px; height: 46px; padding: 0; flex: 0 0 auto;
        border-radius: 12px;
        background: transparent;
        border: 1.5px solid #3a3a55;
        color: #ffffff;
        font-size: 18px; font-weight: 700;
        align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s;
      }
      .profile-action-btn.secondary-icon:hover { border-color: #6a6a88; background: rgba(255,255,255,0.04); }
      .profile-action-btn.secondary-icon img { width: 18px; height: 18px; }
    }

    @media (max-width: 1024px) {
    }

    @media (max-width: 900px) {
      .profile-info-section { grid-template-columns: minmax(0, 1fr); }
      .public-profile-page .profile-info-section { grid-template-columns: minmax(0, 1fr); }
      .best-drop-card { flex-direction: column; }
      .best-drop-img-wrap { margin: 16px 0 14px; }
      .best-drop-name, .best-drop-subname { align-self: flex-start; }
      .best-drop-btn { width: 100%; margin-top: auto; }
      .contract-group { column-gap: 12px; }
    }

    @media (max-width: 767px) {
      .contract-group { column-gap: 10px; }
      .inventory-toolbar { flex-direction: column; align-items: flex-start; }
      .public-inventory-toolbar { align-items: flex-start; }
      .public-inventory-title { margin-left: 0; }

      .profile-action-btn.primary,
      .profile-action-btn.secondary { display: none; }
      .profile-action-btn.primary-icon,
      .profile-action-btn.secondary-icon { display: flex; }
      .profile-action-btn.primary-icon {
        width: 46px; height: 46px; padding: 0; flex: 0 0 auto; border-radius: 12px;
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #FFFFFF; border: none;
        font-size: 24px; font-weight: 900;
        align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s;
      }
      .profile-action-btn.secondary-icon {
        width: 46px; height: 46px; padding: 0; flex: 0 0 auto; border-radius: 12px;
        background: transparent; border: 1.5px solid #3a3a55;
        color: #ffffff; font-size: 18px; font-weight: 700;
        align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s;
      }
      .profile-action-btn.secondary-icon img { width: 18px; height: 18px; }

      /* === МОБИЛЬНАЯ ВЁРСТКА КАК НА СКРИНШОТЕ ===
         1) Профильная карточка на всю ширину сверху.
            Внутри: avatar + name/balance слева, кнопки [+] [⇄] справа.
         2) Ниже двухколоночная сетка: левый столбец — купон+email,
            правый столбец — Best Drop на всю высоту.
      */
      .profile-info-section {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
          "profile profile"
          "middle  best";
        gap: 14px;
        padding: 16px;
      }
      .profile-card { grid-area: profile; grid-column: 1 / -1; padding: 16px; }
      .profile-middle { grid-area: middle; gap: 14px; }
      .best-drop-card {
        grid-area: best;
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 0;
      }
      .best-drop-card .best-drop-img-wrap { margin: 12px 0; }
      .best-drop-card .best-drop-btn { width: 100%; margin-top: 12px; padding: 12px; }

      /* В профильной карточке: actions уже стоят справа благодаря margin-left:auto во flex-строке */
      .profile-card .profile-user-row { margin-bottom: 14px; gap: 12px; flex-wrap: nowrap; }
      .profile-card .profile-actions { gap: 8px; margin-left: auto; }

      /* Прогресс-бейджи мобилки немного компактнее */
      .progress-level-badge,
      .progress-icon-badge { width: 52px; height: 30px; }
      .progress-label { font-size: 12px; }

      /* Купон-иконка на мобилке мельче */
      .coupon-card .card-title-icon {
        width: 22px; height: 22px;
        font-size: 13px;
      }
      .coupon-card, .email-card, .trade-url-card { padding: 14px; }
      .card-subtitle { font-size: 14px; margin-bottom: 10px; }
      .card-title-text { font-size: 10px; }
    }

    @media (max-width: 600px) {
      .profile-info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .best-drop-card { flex-direction: column; }
    }

    @media (max-width: 480px) {
      .profile-info-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
      }
    }
    @media (max-width: 1100px) {
        color: #ffffff;
      }
.skin-card-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 14px;
  text-align: center;
  color: #9a9fbd;
  background: rgba(20, 20, 32, 0.55);
}
