/* =====================================================
       INVENTORY BAR — из inventory-страницы
    ===================================================== */

    /* =====================================================
       TOP NAV — из inventory-страницы
    ===================================================== */
    /* =====================================================
       CONTRACTS PAGE
    ===================================================== */
    .contracts-page {
      min-height: calc(100vh - 160px);
      padding-bottom: 40px;
      background: #071018;
      color: #ffffff;
      font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    }

    .contracts-page > .contents {
      width: min(100%, 1920px);
      max-width: 100%;
      margin: 0 auto;
      padding: 0;
      box-sizing: border-box;
    }

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

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

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

    .contracts-page .breadcrumb {
      max-width: 1920px;
      margin: 0 auto 18px;
      padding: 16px 24px 0;
      gap: 10px;
      color: #687894;
    }

    .contracts-page .breadcrumb-home {
      width: 32px;
      height: 32px;
    }

    .contracts-page .breadcrumb-home svg {
      width: 20px;
      height: 20px;
    }

    .contracts-page .breadcrumb-separator {
      color: #687894;
      font-size: 16px;
      line-height: 1;
    }

    .contracts-page .breadcrumb-current {
      color: #687894;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.2;
      letter-spacing: 0;
    }

    .page-title {
      text-align: center;
      font-size: 30px;
      font-weight: 600;
      line-height: 1.2;
      text-transform: uppercase;
      letter-spacing: 0;
      padding: 6px 0 0;
      color: #fff;
    }

    /* SELECTED SLOTS */
    .contract-slots-section {
      width: 100%;
      max-width: 1296px;
      margin: 0 auto;
      padding: 24px 24px 0;
      display: flex;
      justify-content: center;
      box-sizing: border-box;
    }
    .contract-slots-wrapper { width: 100%; max-width: none; }
    .contract-slots-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 18px;
      min-height: 118px;
      min-width: 0;
    }
    .contract-slots-grid.has-items {
      display: grid;
      grid-template-columns: repeat(10, minmax(0, 1fr));
      gap: 10px;
      grid-auto-rows: 204px;
      justify-content: stretch;
      align-items: stretch;
    }

    .empty-slot {
      width: 96px;
      display: flex; flex-direction: column; align-items: center; gap: 6px;
    }
    .empty-slot-circle {
      width: 78px; height: 78px; border-radius: 50%;
      background: radial-gradient(circle, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 70%);
      display: flex; align-items: center; justify-content: center; opacity: 0.35;
    }
    .empty-slot-circle img { width: 44px; height: 44px; opacity: 0.5; filter: grayscale(1); }
    .empty-slot-line { width: 78px; height: 2px; background: rgba(255,255,255,0.06); border-radius: 1px; }

    .contract-slot {
      position: relative;
      min-width: 0;
      height: 204px;
      min-height: 204px;
      max-height: 204px;
      padding: 0 0 10px;
      background: transparent;
      border: 0;
      border-radius: 0;
      display: grid;
      grid-template-rows: 20px 104px 14px 18px 8px;
      align-items: start;
      align-content: start;
      cursor: default;
      transition: all 0.2s;
      overflow: visible;
    }
    .contract-slot::after {
      content: '';
      display: block;
      grid-column: 1;
      grid-row: 5;
      align-self: end;
      width: 100%;
      height: 2px;
    }
    .contract-slot.yellow::after { background: #FFD700; }
    .contract-slot.purple::after { background: #975DF8; }
    .contract-slot.red::after    { background: #eb4b4b; }
    .contract-slot.blue::after   { background: #4b69ff; }
    .contract-slot.gray::after   { background: #8888aa; }
    .contract-slot.green::after  { background: #4BB543; }

    .slot-img-wrap {
      width: 100%; height: 104px;
      display: flex; align-items: center; justify-content: center;
      position: relative; border-radius: 0; overflow: hidden; margin: 0 0 8px;
    }
    .slot-bg-img {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 74px;
      height: 74px;
      transform: translate(-50%, -50%);
      object-fit: contain;
      opacity: 0.34;
      pointer-events: none;
      z-index: 0;
    }
    .slot-gun-svg {
      width: min(95%, 100%);
      max-width: 100%;
      height: 78px;
      position: relative;
      z-index: 1;
      object-fit: contain;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    }
    .slot-price {
      width: 100%;
      min-height: 21px;
      font-size: 11px;
      line-height: 1.2;
      color: #6bd47a;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
      white-space: nowrap;
    }
    .slot-name { font-size: 11px; color: #b3bccd; text-align: left; width: 100%; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .slot-subname { font-size: 12px; color: #fff; font-weight: 600; text-align: left; width: 100%; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .slot-remove {
      position: absolute; top: 26px; right: 6px; width: 28px; height: 28px;
      background: #151e2c; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; opacity: 0; transition: all 0.2s;
      z-index: 3;
    }
    .contract-slot:hover .slot-remove { opacity: 1; }
    .slot-remove:hover { background: #1a2536; }
    .slot-remove svg { width: 14px; height: 14px; fill: #70809b; }

    @keyframes slotAddIn {
      0%   { opacity: 0; transform: scale(0.5) translateY(20px); }
      60%  { transform: scale(1.08) translateY(-3px); }
      100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    .contract-slot.anim-in { animation: slotAddIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }

    /* STATS BAR */
    .contract-stats-bar {
      width: 100%;
      max-width: 1296px;
      margin: 0 auto;
      padding: 28px 0 0;
      box-sizing: border-box;
    }
    .stats-bar-inner {
      height: 80px;
      min-height: 0;
      background: #101823;
      border: 0;
      border-radius: 8px;
      padding: 10px 26px;
      display: flex;
      align-items: center;
      gap: 0;
      width: 100%;
      box-sizing: border-box;
    }
    .stat-item {
      min-height: 48px;
      display: flex; flex-direction: column; gap: 5px; padding: 0 26px;
      border-right: 1px solid rgba(67, 78, 101, 0.45); flex-shrink: 0; min-width: 0;
      justify-content: center;
      box-sizing: border-box;
    }
    .stat-item:first-child { padding-left: 0; }
    .stat-item:nth-child(1) { width: 172px; }
    .stat-item:nth-child(2) { width: 142px; }
    .stat-item:nth-child(3) { width: 440px; }
    .stat-label { font-size: 14px; color: #687894; text-transform: none; letter-spacing: 0; font-weight: 500; }
    .stat-value { font-size: 18px; line-height: 1.15; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 6px; }
    .stat-sublabel { font-size: 13px; line-height: 1.2; color: #4e5a70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .coin-dot { width: 10px; height: 10px; display: inline-block; flex: 0 0 auto; object-fit: contain; }

    .stat-range { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; line-height: 1.15; }
    .range-num { color: #fff; }
    .range-sep { color: #ffffff; opacity: 0.9; }
    .range-num.high { color: #ffffff; }

    .balance-slider-wrap {
      flex: 1 1 auto; padding: 0 30px; display: flex; flex-direction: column; gap: 9px; min-width: 360px;
      border-right: 0;
      justify-content: center;
    }
    .balance-slider-label { font-size: 15px; color: #687894; text-transform: none; letter-spacing: 0; font-weight: 500; }
    .balance-slider-row { display: flex; align-items: center; gap: 13px; }
    .balance-slider-track {
      flex: 1; height: 5px; background: rgba(104, 120, 148, 0.16); border-radius: 3px;
      position: relative; cursor: pointer; touch-action: none;
    }
    .balance-slider-fill {
      position: absolute; left: 0; top: 0; height: 100%;
      background: #56bd65; border-radius: 3px;
      transition: width 0.3s ease;
    }
    .balance-slider-thumb {
      position: absolute; top: 50%; transform: translate(-50%, -50%);
      width: 16px; height: 16px; border-radius: 50%;
      background: #101823; border: 3px solid #56bd65;
      box-shadow: none; cursor: grab; transition: left 0.3s ease;
    }
    .balance-slider-thumb:active { cursor: grabbing; }
    .balance-amount {
      font-size: 18px; color: #fff; font-weight: 600; line-height: 1.15; white-space: nowrap; display: flex; align-items: center; gap: 6px;
    }

    .balance-spinners { display: flex; gap: 4px; }
    .spinner-btn {
      display: none;
    }
    .spinner-btn:hover { border-color: #4a4a7a; color: #fff; background: rgba(255,255,255,0.04); }
    .spinner-btn:active { transform: scale(0.92); }
    .spinner-btn svg { width: 12px; height: 12px; fill: currentColor; }

    .create-contract-btn-wrap { margin-left: 0; padding-left: 0; flex: 0 0 305px; }
    .create-contract-btn {
      width: 100%;
      height: 56px;
      background: linear-gradient(180deg, #FDDF6D 0%, #CE8403 100%);
      border: 0; border-radius: 8px; padding: 0 24px;
      color: #ffffff; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
      font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: 0;
      text-transform: uppercase; cursor: pointer;
      transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
      white-space: nowrap;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      box-shadow: none;
    }
    .create-contract-btn:not(:disabled):hover {
      background: linear-gradient(180deg, #FFE58A 0%, #D88D08 100%);
      box-shadow: none;
    }
    .create-contract-btn:disabled { cursor: not-allowed; transform: none; }
    .create-contract-btn img { width: 18px; height: 18px; }

    /* CONTRACT RESULT inline */
    .contract-result-section {
      display: none; padding: 24px; width: 100%; position: relative;
      background: radial-gradient(ellipse at center, rgba(255,215,0,0.06) 0%, transparent 60%);
    }
    .contract-result-section.active { display: flex; flex-direction: column; align-items: center; }
    .result-stage {
      width: 100%; min-height: 360px;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
      position: relative;
    }
    .result-circle-wrap { position: relative; opacity: 0; transform: scale(0.6); }
    .result-circle-wrap.show { animation: resultPop 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards; }
    @keyframes resultPop {
      0%   { opacity: 0; transform: scale(0.6); }
      60%  { opacity: 1; transform: scale(1.08); }
      100% { opacity: 1; transform: scale(1); }
    }
    .result-circle {
      width: 180px; height: 180px; border-radius: 50%;
      background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(20,20,40,0.7) 70%);
      border: 2px solid rgba(255,215,0,0.6);
      box-shadow: 0 0 0 4px rgba(255,215,0,0.18), 0 0 60px rgba(255,215,0,0.35);
      display: flex; align-items: center; justify-content: center;
      animation: winGlow 2.4s ease-in-out infinite;
    }
    @keyframes winGlow {
      0%, 100% { box-shadow: 0 0 0 4px rgba(255,215,0,0.18), 0 0 60px rgba(255,215,0,0.35); }
      50%       { box-shadow: 0 0 0 6px rgba(255,215,0,0.3),  0 0 80px rgba(255,215,0,0.5); }
    }
    .result-circle img { width: 110px; height: 75px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.6)); }
    .result-wear { font-size: 13px; color: #8888aa; opacity: 0; }
    .result-wear.show { animation: fadeUp 0.4s 0.2s ease forwards; }
    .result-name { font-size: 22px; color: #fff; font-weight: 700; opacity: 0; }
    .result-name.show { animation: fadeUp 0.4s 0.3s ease forwards; }
    .result-price { font-size: 18px; color: #FFD700; font-weight: 800;
      padding: 0 28px 10px; border-bottom: 2px solid #FFD700; opacity: 0;
      display: flex; align-items: center; gap: 6px;
    }
    .result-price.show { animation: fadeUp 0.4s 0.4s ease forwards; }
    .result-price svg { width: 13px; height: 13px; fill: #FFD700; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .result-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; opacity: 0; }
    .result-actions.show { animation: fadeUp 0.4s 0.5s ease forwards; }
    .result-take-back-btn {
      width: 44px; height: 44px; border-radius: 8px;
      background: #1e1e30; border: 1px solid #2a2a40;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: #8888aa; transition: all 0.2s;
    }
    .result-take-back-btn:hover { color: #fff; border-color: #4a4a7a; }
    .result-take-back-btn svg { width: 18px; height: 18px; fill: currentColor; }
    .result-sell-btn {
      background: linear-gradient(180deg, #FDDF6D 0%, #CE8403 100%); border: 0; border-radius: 8px;
      padding: 15px 24px; height: 50px; color: #ffffff; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
      font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: 0; cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
      text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px;
      box-shadow: none;
    }
    .result-sell-btn:hover { background: linear-gradient(180deg, #FFE58A 0%, #D88D08 100%); box-shadow: none; }
    .result-sell-btn svg { width: 18px; height: 18px; fill: currentColor; }
    .result-swap-btn,
    .result-settings-btn {
      display: flex; align-items: center; justify-content: center;
      border: 0;
      transition: all 0.2s;
    }
    #contractResultSection .result-swap-btn {
      width: 52px;
      height: 52px;
      border-radius: 9px !important;
      background: linear-gradient(180deg, #FFE06B 0%, #E49A00 100%) !important;
    }
    #contractResultSection .result-swap-btn img {
      width: 24px;
      height: 24px;
      filter: brightness(0) invert(1);
    }
    #contractResultSection .result-settings-btn {
      width: 32px;
      height: 32px;
      border-radius: 6px !important;
      background: #151e2f !important;
    }
    #contractResultSection .result-settings-btn img { width: 16px; height: 16px; }
    #contractResultSection .result-settings-icon {
      width: 16px;
      height: 16px;
      fill: #687894;
    }
    #contractResultSection .result-swap-btn:disabled,
    #contractResultSection .result-settings-btn:disabled {
      opacity: 1 !important;
      cursor: default !important;
    }

    .spark {
      position: absolute; width: 4px; height: 4px; border-radius: 50%;
      background: #FFD700; pointer-events: none; z-index: 9999;
      animation: sparkFly 0.9s ease-out forwards;
    }
    @keyframes sparkFly {
      0%   { opacity: 1; transform: translate(0,0) scale(1); }
      100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
    }

    /* AVAILABLE ITEMS */
    .available-section {
      width: 100%;
      max-width: 1296px;
      margin: 0 auto;
      padding: 38px 24px 0;
      box-sizing: border-box;
    }
    .section-title {
      font-size: 32px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: 0;
      text-align: center; color: #fff; margin-bottom: 28px;
    }
    .available-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; grid-auto-rows: 204px; align-items: stretch; min-width: 0; }

    .skin-card {
      position: relative;
      min-width: 0;
      height: 204px;
      min-height: 204px;
      max-height: 204px;
      padding: 0 0 10px;
      background: transparent;
      border: 0; border-radius: 0;
      display: grid;
      grid-template-rows: 20px 104px 14px 18px 8px;
      align-items: start;
      align-content: start;
      cursor: pointer; transition: all 0.2s; overflow: visible;
    }
    .skin-card::before {
      content: '';
      display: block;
      grid-column: 1;
      grid-row: 5;
      align-self: end;
      width: 100%;
      height: 2px;
    }
    .skin-card.yellow::before { background: #FFD700; }
    .skin-card.purple::before { background: #975DF8; }
    .skin-card.red::before    { background: #eb4b4b; }
    .skin-card.blue::before   { background: #4b69ff; }
    .skin-card.gray::before   { background: #8888aa; }
    .skin-card.green::before  { background: #4BB543; }
    .skin-card:hover { transform: none; }
    .skin-card:hover .skin-card-bg-img { opacity: 0.9; }
    .skin-card:hover .skin-card-cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    .skin-card.selected {
      opacity: 0.48;
      box-shadow: none;
    }
    .skin-card.selected .skin-card-cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); background: rgba(104,120,148,0.76); box-shadow: none; }
    .skin-card.selected:hover .skin-card-bg-img { opacity: 0.5; }

    .skin-card-price-row { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 21px; }
    .skin-card-price { font-size: 11px; color: #6bd47a; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
    .skin-card-price svg { width: 10px; height: 10px; fill: #4BB543; }

    .skin-card-img-wrap {
      width: 100%; height: 104px;
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden; border-radius: 0; margin: 0 0 8px;
    }
    .skin-card-bg {
      position: absolute; inset: 0;
      background: radial-gradient(circle at center, rgba(255,215,0,0.08) 0%, transparent 70%);
      transition: background 0.25s ease;
    }
    .skin-card.purple .skin-card-bg { background: radial-gradient(circle at center, rgba(151,93,248,0.15) 0%, transparent 70%); }
    .skin-card.red    .skin-card-bg { background: radial-gradient(circle at center, rgba(235,75,75,0.15) 0%, transparent 70%); }
    .skin-card.blue   .skin-card-bg { background: radial-gradient(circle at center, rgba(75,105,255,0.15) 0%, transparent 70%); }
    .skin-card.yellow .skin-card-bg { background: radial-gradient(circle at center, rgba(255,215,0,0.15) 0%, transparent 70%); }
    .skin-card.gray   .skin-card-bg { background: radial-gradient(circle at center, rgba(136,136,170,0.12) 0%, transparent 70%); }

    .skin-card-img { position: relative; width: min(95%, 100%); max-width: 100%; height: 78px; object-fit: contain; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }

    .skin-card-cursor,
    .skin-card-action {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: rgba(104, 120, 148, 0.76);
      box-shadow: none;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      overflow: hidden;
    }
    .skin-card-cursor {
      transform: translate(-50%, -50%) scale(0.72);
      opacity: 0;
      transition: opacity 0.22s ease, transform 0.22s ease;
      z-index: 2;
    }
    .skin-card.selected .skin-card-cursor { background: rgba(104, 120, 148, 0.76); box-shadow: none; }
    .skin-card-cursor::before,
    .skin-card-cursor::after,
    .skin-card-action::before,
    .skin-card-action::after {
      content: '';
      position: absolute;
      left: 50%;
      top: 50%;
      width: 31px;
      height: 3px;
      border-radius: 2px;
      background: #09121b;
      transform: translate(-50%, -50%);
    }
    .skin-card-cursor.plus-icon::after,
    .skin-card-action.plus-icon::after {
      width: 3px;
      height: 31px;
    }
    .skin-card-cursor.minus-icon::after,
    .skin-card-action.minus-icon::after {
      display: none;
    }
    .skin-card-action {
      z-index: 4;
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.72);
      animation: skinCardActionPop 0.72s ease-out forwards;
    }
    @keyframes skinCardActionPop {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
      28% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
      76% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
      100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
    }

    .skin-card-name { font-size: 11px; color: #b3bccd; text-align: left; width: 100%; line-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
    .skin-card-subname { font-size: 12px; color: #fff; font-weight: 600; text-align: left; width: 100%; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .skin-card-bg-img {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 82px;
      height: 82px;
      transform: translate(-50%, -50%);
      object-fit: contain;
      opacity: 0.72;
      pointer-events: none;
      z-index: 0;
      transition: opacity 0.25s ease;
    }

    /* =====================================================
       STATS SECTION (под контрактами)
    ===================================================== */
/* =====================================================
       FOOTER — из inventory-страницы
    ===================================================== */
/* =====================================================
       RESPONSIVE
    ===================================================== */
    @media (max-width: 1600px) {
      .available-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
      .contract-slots-grid.has-items { grid-template-columns: repeat(10, minmax(0, 1fr)); }
      .stats-bar-inner { padding: 12px 20px; }
      .stat-item { padding: 0 22px; }
      .stat-item:first-child { padding-left: 0; }
      .stat-item:nth-child(1) { width: 148px; }
      .stat-item:nth-child(2) { width: 124px; }
      .stat-item:nth-child(3) { width: 330px; }
      .balance-slider-wrap { min-width: 250px; padding: 0 22px; }
      .create-contract-btn-wrap { flex-basis: 240px; }
      .create-contract-btn { padding: 0 16px; font-size: 16px; }
    }
    @media (max-width: 1200px) {
      .available-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
      .stats-bar-inner { flex-wrap: wrap; gap: 12px; }
      .create-contract-btn-wrap { flex: 1 1 100%; margin-left: 0; padding-left: 0; }
    }
    @media (max-width: 1024px) and (min-width: 768px) {
      .available-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
      .contract-slots-grid.has-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    }
    @media (max-width: 992px) {
      .available-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
      .contract-slots-grid.has-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    }
    @media (max-width: 767px) {
      .contracts-page > .contents { padding: 0 12px; }
      .available-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 184px;
        gap: 6px;
      }
      .contract-slots-grid.has-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 184px;
        gap: 6px;
      }
      .skin-card,
      .contract-slot {
        height: 184px;
        min-height: 184px;
        max-height: 184px;
      }
      .skin-card-img-wrap,
      .slot-img-wrap {
        height: 92px;
      }
      .skin-card-img,
      .slot-gun-svg {
        height: 68px;
      }
    }
    @media (max-width: 480px) {
      .available-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 176px;
      }
      .contract-slots-grid.has-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 176px;
      }
      .skin-card,
      .contract-slot {
        height: 176px;
        min-height: 176px;
        max-height: 176px;
      }
      .skin-card-img-wrap,
      .slot-img-wrap {
        height: 88px;
      }
      .skin-card-img,
      .slot-gun-svg {
        height: 64px;
      }
    }

    /* Desktop contract layout aligned with the Figma frame. */
    @media (min-width: 1101px) {
      .contracts-page .breadcrumb {
        margin-bottom: 6px;
        padding: 12px 24px 0;
        gap: 6px;
      }
      .contracts-page .breadcrumb-home { width: 20px; height: 20px; }
      .contracts-page .breadcrumb-home svg { width: 14px; height: 14px; }
      .contracts-page .breadcrumb-separator,
      .contracts-page .breadcrumb-current { font-size: 10px; }
      .page-title {
        padding-top: 4px;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
      }

      .contract-slots-section { padding: 12px 24px 0; }
      .contract-slots-grid { min-height: 96px; gap: 10px; }
      .empty-slot { width: 72px; gap: 4px; }
      .empty-slot-circle { width: 58px; height: 58px; }
      .empty-slot-circle img { width: 34px; height: 34px; }
      .empty-slot-line { width: 58px; height: 1px; }

      .contract-slots-grid.has-items,
      .available-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        grid-auto-rows: 132px;
        gap: 10px;
      }
      .contract-slot,
      .skin-card {
        height: 132px;
        min-height: 132px;
        max-height: 132px;
        padding-bottom: 5px;
        grid-template-rows: 16px 70px 13px 15px 4px;
      }
      .contract-slot::after,
      .skin-card::before { height: 1px; }
      .slot-img-wrap,
      .skin-card-img-wrap {
        height: 70px;
        margin: 0;
      }
      .slot-bg-img { width: 56px; height: 56px; }
      .skin-card-bg-img { width: 82px; height: 82px; }
      .slot-gun-svg,
      .skin-card-img {
        width: 100%;
        max-width: none;
        height: 58px;
      }
      .slot-price,
      .skin-card-price-row { min-height: 16px; }
      .slot-price,
      .skin-card-price {
        gap: 2px;
        font-size: 8px;
        font-weight: 500;
        line-height: 12px;
        font-variant-numeric: tabular-nums;
      }
      .coin-dot { width: 10px; height: 10px; }
      .slot-name,
      .slot-subname,
      .skin-card-name,
      .skin-card-subname {
        font-size: 8px;
        font-weight: 500;
        line-height: 13px;
        text-align: left;
      }
      .slot-name,
      .skin-card-name { color: var(--demo-muted, #687894); }
      .slot-subname,
      .skin-card-subname { color: #ffffff; }
      .slot-remove {
        top: 18px;
        right: 4px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
      }
      .slot-remove img { width: 12px; height: 12px; }

      .contract-stats-bar { padding-top: 12px; }
      .stats-bar-inner {
        display: grid;
        grid-template-columns: 10.4% 8.7% 27% 33.1% 20.8%;
        align-items: center;
        gap: 0;
        height: 60px;
        padding: 8px 24px;
        border-radius: 6px;
      }
      .stat-item {
        width: auto !important;
        min-height: 40px;
        height: 40px;
        padding: 0 18px;
        gap: 3px;
        display: grid;
        grid-template-rows: 11px 16px;
        align-content: center;
        justify-content: stretch;
      }
      .stat-item:first-child { padding-left: 0; }
      .stat-label,
      .balance-slider-label {
        height: 11px;
        color: var(--demo-muted, #687894);
        font-size: 8px;
        font-weight: 500;
        line-height: 11px;
        white-space: nowrap;
      }
      .stat-value,
      .stat-range,
      .balance-amount {
        min-height: 16px;
        color: #ffffff;
        font-size: 10px;
        font-weight: 500;
        line-height: 16px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
      }
      .stat-value,
      .stat-range { align-self: end; gap: 4px; }
      .stat-sublabel { display: none; }
      .range-sep { opacity: 1; }

      .balance-slider-wrap {
        min-width: 0;
        height: 40px;
        padding: 0 18px;
        gap: 3px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 11px 16px;
        align-content: center;
        justify-content: stretch;
      }
      .balance-slider-row { width: 100%; min-width: 0; height: 16px; gap: 8px; align-self: end; }
      .balance-spinners { display: none; }
      .balance-slider-track { min-width: 0; height: 3px; }
      .balance-slider-thumb {
        width: 10px;
        height: 10px;
        border-width: 2px;
      }
      .balance-amount { gap: 4px; }

      .create-contract-btn-wrap { flex: none; width: auto; padding-left: 20px; }
      .create-contract-btn {
        height: 36px;
        padding: 0 14px;
        border-radius: 6px;
        font-family: inherit;
        font-size: 10px;
        font-weight: 600;
      }

      .available-section { padding: 20px 24px 0; }
      .section-title {
        margin-bottom: 14px;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
      }
      .skin-card-cursor,
      .skin-card-action { width: 52px; height: 52px; }
      .skin-card-cursor::before,
      .skin-card-action::before { width: 24px; height: 2px; }
      .skin-card-cursor.plus-icon::after,
      .skin-card-action.plus-icon::after { width: 2px; height: 24px; }

      .result-price img,
      .result-sell-btn img { width: 14px; height: 14px; }
      .result-take-back-btn img { width: 14px; height: 14px; }
      .spinner-btn img { width: 12px; height: 12px; }
    }

    .skin-card-cursor,
    .skin-card-action,
    .skin-card.selected .skin-card-cursor {
      width: 40px;
      height: 40px;
      background-color: transparent;
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
      box-shadow: none;
    }
    .skin-card-cursor.plus-icon,
    .skin-card-action.plus-icon { background-image: url('../../img/icon_add.svg'); }
    .skin-card-cursor.minus-icon,
    .skin-card-action.minus-icon { background-image: url('../../img/icon_remove.svg'); }
    .skin-card-cursor::before,
    .skin-card-cursor::after,
    .skin-card-action::before,
    .skin-card-action::after { display: none; }

    .coin-dot.contract-filter-crown {
      width: 20px;
      height: 20px;
    }
