body,
button,
input,
select,
textarea {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.skins-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}
.skins-header h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; }
.skins-header p, .panel-top p { margin: 0; color: var(--muted); }

.panel { padding: 22px; margin-bottom: 22px; }

.panel-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}
.panel-top h1, .panel-top h2 { margin:0 0 6px; }

.search-input { max-width:320px; }

.category-selector {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.category-selector button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:rgba(255,255,255,0.05);
    color:var(--text);
    padding:10px 15px;
    border-radius:12px;
    border:1px solid var(--border);
    transition:.18s ease;
}
.category-selector button:hover,
.category-selector button.active {
    background:rgba(255, 140, 0, 0.067);
    border-color:rgba(255, 140, 0, 0.482);
}

.skins-grid {
    display:grid;
    gap:12px;
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
}
.compact-grid {
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
}

.skin-card {
    display:block;
    position:relative;
    background:linear-gradient(180deg, var(--card-2), rgba(15,23,42,0.86));
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.skin-card:hover {
    transform:translateY(-3px);
    border-color:rgba(255,140,0,0.30);
    box-shadow:0 16px 30px rgba(0,0,0,0.2);
}
.skin-card.is-selected {
    border-color:rgba(34,197,94,0.55);
    box-shadow:0 0 0 1px rgba(34,197,94,0.2),0 16px 30px rgba(0,0,0,0.2);
}

.skin-thumb {
    position:relative;
    aspect-ratio:16/9;
    background:rgba(255,255,255,0.06);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px;
}
.compact-thumb {
    aspect-ratio:16/8;
    padding:12px;
}
.skin-thumb img {
    width:100%;
    max-height:88px;
    object-fit:contain;
}

.preview-media {
    padding:18px;
    background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.preview-media img {
    width:100%;
    max-height:280px;
    object-fit:contain;
}

.selected-badge {
    position:absolute;
    top:10px;
    right:10px;
    background:rgba(34,197,94,0.95);
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:6px 10px;
    border-radius:999px;
}

.skin-info {
    padding:12px;
}
.skin-info strong {
    display:block;
    margin-bottom:2px;
    font-size:14px;
}
.skin-info span {
    font-size:13px;
    color:var(--muted);
}

.breadcrumb {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
    color:var(--muted);
    font-size:14px;
}
.breadcrumb a { color:var(--text); }

.view-layout {
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:22px;
}

.preview-card,
.editor-card {
    border-radius:20px;
    border:1px solid var(--border);
    background:rgba(255,255,255,0.03);
    overflow:hidden;
}
.preview-meta { padding:22px; }
.preview-meta h1 { margin:0 0 8px; font-size:28px; }
.preview-meta p { margin:0 0 14px; color:var(--muted); }

.meta-badges {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.meta-badges span {
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,0.05);
    border:1px solid var(--border);
    color:var(--muted);
    font-size:13px;
}

.editor-form { padding:22px; }

.field { margin-bottom:16px; }
.field label {
    display:block;
    font-weight:700;
    margin-bottom:8px;
}

.range-value,
.field-note {
    margin-top:8px;
    color:var(--muted);
    font-size:13px;
}

.sub-action-row { margin-bottom:16px; }

.team-switch {
    display:flex;
    gap:10px;
}
.team-btn {
    flex:1;
    min-height:46px;
    border-radius:14px;
    background:rgba(255,255,255,0.05);
    color:var(--text);
    border:1px solid var(--border);
    transition:.18s ease;
}
.team-btn.active {
    background:rgba(139,92,246,0.22);
    border-color:rgba(139,92,246,0.45);
}
.team-btn:disabled {
    opacity:.45;
    cursor:not-allowed;
}

.checkbox-row { padding-top:4px; }
.checkline {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    cursor:pointer;
}
.checkline input {
    width:18px;
    height:18px;
    margin:0;
}

.sticker-picker-grid {
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
}
.sticker-picker-card {
    border-radius:16px;
    background:rgba(255,255,255,0.03);
    padding:12px;
}
.sticker-slot-preview {
    height:96px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-bottom:10px;
}
.sticker-slot-preview img {
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
}
.sticker-slot-empty {
    color:var(--muted);
    font-size:13px;
}
.sticker-slot-title {
    font-size:13px;
    color:var(--muted);
    margin-bottom:8px;
}
.keychain-select { width:100%; }

.save-progress {
    height:8px;
    width:100%;
    background:rgba(255,255,255,0.05);
    border-radius:999px;
    overflow:hidden;
    opacity:0;
    transform:translateY(-6px);
    transition:opacity .2s ease, transform .2s ease;
    margin:8px 0 16px;
}
.save-progress.active {
    opacity:1;
    transform:translateY(0);
}
.save-progress-bar {
    width:42%;
    height:100%;
    background:linear-gradient(90deg, var(--main-color), #ff6a00);
    border-radius:999px;
    animation:saveBar 1.05s linear infinite;
}
@keyframes saveBar {
    0% { transform:translateX(-120%); }
    100% { transform:translateX(260%); }
}

.form-actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:8px;
}
.save-status {
    margin-top:14px;
    min-height:22px;
    color:var(--muted);
    font-size:14px;
}
.save-status.success { color:var(--success); }
.save-status.error { color:var(--danger); }

.hidden-by-search { display:none !important; }

@media (max-width: 920px) {
    .view-layout { grid-template-columns:1fr; }
    .skins-header,
    .panel-top {
        flex-direction:column;
        align-items:stretch;
    }
    .search-input { max-width:none; }
}

@media (max-width: 600px) {
    .skins-shell { padding:16px; }
    .panel { padding:16px; }
    .skins-grid,
    .compact-grid,
    .sticker-picker-grid { grid-template-columns:1fr; }
}

.selected-detail {
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
}

.keychain-picker-card {
    border:1px solid var(--border);
    border-radius:16px;
    background:rgba(255,255,255,0.03);
    padding:12px;
}
.keychain-slot-preview {
    height:96px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-bottom:10px;
}
.keychain-slot-preview img {
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
}

.picker-trigger {
    width:100%;
    min-height:42px;
    border-radius:12px;
    background:rgba(255,255,255,0.05);
    color:var(--text);
    border:1px solid var(--border);
}
.picker-modal[hidden] { display:none; }
.picker-modal {
    position:fixed;
    inset:0;
    z-index:1200;
}
.picker-backdrop {
    position:absolute;
    inset:0;
    background:rgba(2,6,23,0.72);
}
.picker-dialog {
    position:relative;
    width:min(980px, calc(100vw - 24px));
    max-height:calc(100vh - 24px);
    overflow:auto;
    margin:12px auto;
    padding:18px;
    border-radius:18px;
    background:rgba(18,18,20,0.96);
    border:1px solid var(--border);
}
.picker-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.picker-close {
    width:38px;
    height:38px;
    border-radius:999px;
    border:1px solid var(--border);
    background:rgba(255,255,255,0.04);
    color:var(--text);
    font-size:24px;
}
.picker-search {
    max-width:none;
    width:100%;
    margin-bottom:12px;
}
.picker-actions {
    display:flex;
    justify-content:flex-end;
    margin-bottom:12px;
}
.picker-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
    gap:10px;
}
.picker-item {
    padding:10px;
    border-radius:14px;
    border:1px solid var(--border);
    background:rgba(255,255,255,0.04);
    color:var(--text);
    text-align:left;
}
.picker-item-image {
    display:flex;
    align-items:center;
    justify-content:center;
    height:74px;
    border-radius:10px;
    background:rgba(255,255,255,0.04);
    margin-bottom:8px;
    overflow:hidden;
}
.picker-item-image img {
    width:100%;
    height:100%;
    object-fit:contain;
    padding:6px;
}
.picker-item-name {
    display:block;
    font-size:12px;
    line-height:1.3;
    color:var(--muted);
}

.weapons-grid {
    display:grid;
    gap:12px;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
}

.compact-card .skin-thumb img { max-height: 82px; }
.compact-card .skin-info { padding: 10px; }
.compact-card .skin-info strong { font-size: 13px; }
.compact-card .selected-detail { font-size: 11px; }

.compact-picker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.compact-picker-card { padding: 10px; }
.compact-slot-preview { height: 72px; margin-bottom: 8px; }
.compact-picker-trigger {
    min-height: 36px;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .compact-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .compact-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.team-detail-list {
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-top:6px;
}
.team-detail-chip {
    display:flex;
    align-items:center;
    gap:6px;
    color:var(--muted);
    font-size:11px;
    line-height:1.3;
}
.team-dot {
    width:8px;
    height:8px;
    border-radius:999px;
    display:inline-block;
    flex:0 0 8px;
}
.team-t .team-dot { background:#f59e0b; box-shadow:0 0 0 2px rgba(245,158,11,0.18); }
.team-ct .team-dot { background:#3b82f6; box-shadow:0 0 0 2px rgba(59,130,246,0.18); }

.sticker-only-button-card { padding:8px; }

.picker-tile {
    width:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
}
.picker-tile .compact-slot-preview {
    margin-bottom:0;
    border:1px solid var(--border);
    transition:border-color .18s ease, transform .18s ease;
}
.picker-tile:hover .compact-slot-preview {
    border-color:rgba(255,140,0,0.38);
    transform:translateY(-1px);
}
.picker-tile:focus-visible .compact-slot-preview {
    outline:2px solid rgba(255,140,0,0.55);
    outline-offset:2px;
}
.sticker-only-button-card .sticker-slot-title {
    margin-top:8px;
    text-align:center;
}

.team-detail-toggle {
    display:flex;
    align-items:flex-start;
    gap:8px;
}
.team-dot-switches {
    display:flex;
    align-items:center;
    gap:6px;
    padding-top:2px;
}
.team-dot-btn {
    width:10px;
    height:10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,0.16);
    padding:0;
    cursor:pointer;
    opacity:.85;
    box-shadow:0 0 0 2px rgba(255,255,255,0.05);
    background:transparent;
}
.team-dot-btn.active {
    opacity:1;
    transform:scale(1.08);
    box-shadow:0 0 0 2px rgba(255,255,255,0.10);
}
.team-dot-btn.team-t { background:#f59e0b; }
.team-dot-btn.team-ct { background:#00c3ff; }

.team-detail-values {
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}
.team-detail-toggle [data-team-detail] { display:none; }
.team-detail-toggle [data-team-detail].active { display:flex; }

.team-detail-dots-only {
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:8px;
}
.team-detail-dots-only .centered-switches {
    width:100%;
    justify-content:center;
    gap:10px;
    padding-top:0;
}
.team-detail-dots-only .team-dot-btn {
    width:12px;
    height:12px;
    opacity:0.9;
}
.team-detail-dots-only .team-dot-btn:not(.active) {
    opacity:0.58;
}
.team-detail-dots-only .team-dot-btn.active {
    transform:scale(1.14);
}

.category-thumb {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:12px 22px 10px;
    background:
        radial-gradient(circle at top, rgba(255,140,0,0.10), transparent 56%),
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
    border:1px solid rgba(255,255,255,0.10);
    border-radius:16px 16px 0 0;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
}
.category-thumb img[data-team-image] {
    width:100%;
    height:100%;
    object-fit:contain;
    padding:4px 12px;
    transform:scale(1.15);
}
.category-info .category-team-switches {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:8px;
}
.weapons-grid .category-info {
    text-align:center;
}
.weapons-grid .team-dot-btn {
    width:12px;
    height:12px;
    opacity:.82;
    box-shadow:0 0 0 2px rgba(255,255,255,0.10);
}
.weapons-grid .team-dot-btn.active {
    opacity:1;
    transform:scale(1.12);
    box-shadow:0 0 0 2px rgba(255,255,255,0.16);
}

/* ultra modern refresh */
.skins-header h1 {
    background: linear-gradient(135deg, #fff 0%, #ffd9a3 46%, #ff9f1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
}
.panel {
    background:
        radial-gradient(circle at top right, rgba(255,140,0,0.12), transparent 38%),
        linear-gradient(180deg, rgba(18,18,22,0.74), rgba(18,18,22,0.56));
    border-color: rgba(255,255,255,0.09);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255,255,255,0.06);
}
.category-selector button,
.search-input,
.picker-search,
.field input,
.field select,
.field textarea {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.skin-card {
    background: linear-gradient(180deg, rgba(28,28,34,0.82), rgba(18,18,24,0.68));
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(255,255,255,0.06);
}
.skin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.214), transparent 35%, rgba(195, 0, 255, 0.225));
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.skin-card:hover::before,
.skin-card.is-selected::before { opacity: 1; }

.skin-card:hover {
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(255,140,0,0.16);
}
.skin-card.is-selected {
    border-color: rgba(99, 230, 190, 0.46);
    box-shadow: 0 0 0 1px rgba(255,179,71,0.18), 0 22px 42px rgba(2,6,23,0.46);
}

.skin-thumb {
    background:
      radial-gradient(circle at top, rgba(255,140,0,0.12), transparent 55%),
      linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
}
.skin-thumb img {
    filter: drop-shadow(0 12px 18px rgba(15,23,42,0.42));
}

.selected-badge {
    background: linear-gradient(135deg, rgba(28, 170, 80, 0.95), rgba(37, 173, 155, 0.9));
    box-shadow: 0 10px 18px rgba(16,185,129,0.26);
    font-size: 8px;
}

.team-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.team-btn.active {
    border-color: rgba(255,140,0,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.team-btn.team-btn-t.active {
    background: linear-gradient(135deg, rgba(255,140,0,0.30), rgba(255,106,0,0.18));
    border-color: rgba(255,140,0,0.42);
    box-shadow: 0 10px 22px rgba(255,140,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.team-btn.team-btn-ct.active {
    background: linear-gradient(135deg, rgba(59,130,246,0.32), rgba(6,182,212,0.20));
    border-color: rgba(59,130,246,0.46);
    box-shadow: 0 10px 22px rgba(59,130,246,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.checkline {
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.checkline input {
    appearance: none;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(148,163,184,0.35);
    position: relative;
    transition: .18s ease;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}
.checkline input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(15,23,42,0.28);
    transition: .18s ease;
}
.checkline input:checked {
    background: linear-gradient(135deg, #ff9f1a, #ff6a00);
}
.checkline input:checked::after { transform: translateX(22px); }

#wearInput {
    appearance: none;
    height: 14px;
    border-radius: 999px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
#wearInput::-webkit-slider-runnable-track {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(250,204,21,0.95) 50%, rgba(239,68,68,0.95));
}
#wearInput::-webkit-slider-thumb {
    appearance: none;
    margin-top: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(15,23,42,0.9);
    box-shadow: 0 8px 18px rgba(15,23,42,0.35);
    cursor: pointer;
}
#wearInput::-moz-range-track {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(250,204,21,0.95) 50%, rgba(239,68,68,0.95));
}
#wearInput::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(15,23,42,0.9);
    box-shadow: 0 8px 18px rgba(15,23,42,0.35);
}
.range-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
}

.compact-picker-grid { gap: 12px; }
.sticker-only-button-card,
.keychain-picker-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.picker-tile .compact-slot-preview,
.keychain-slot-preview {
    min-height: 100px;
    background:
      radial-gradient(circle at top, rgba(139,92,246,0.13), transparent 58%),
      linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}
.sticker-slot-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 14px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}
.stattrak-part { padding-left: 20px; }

.picker-tile:hover .compact-slot-preview,
.picker-item:hover {
    box-shadow: 0 14px 28px rgba(15,23,42,0.28), 0 0 0 1px rgba(255,140,0,0.14);
}
.picker-dialog {
    background: linear-gradient(180deg, rgba(18,18,20,0.96), rgba(18,18,20,0.92));
    box-shadow: 0 28px 80px rgba(2,6,23,0.6);
}
.picker-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
}

.weapons-grid .category-info .category-team-switches {
    min-height: 18px;
}
.weapons-grid .team-dot-btn {
    width: 12px;
    height: 12px;
    opacity: .82;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.10);
}
.weapons-grid .team-dot-btn.active {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.16);
}

@media (max-width: 640px) {
    .compact-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* choose-skin page image sizing */
#skinGrid.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
#skinGrid .compact-card .skin-thumb {
    aspect-ratio: 16 / 9;
    padding: 14px 14px 12px;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
#skinGrid .compact-card .skin-thumb img {
    max-height: 192px;
}
#skinGrid .compact-card .skin-info {
    padding: 12px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* category page image block shape */
.weapons-grid .category-thumb {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.weapons-grid .category-info {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.skin-thumb-empty {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: transparent;
}

/* view skin sizing tweaks */
.sticker-picker-grid.compact-picker-grid {
    grid-template-columns: repeat(5, minmax(0, 92px));
    justify-content: start;
    gap: 10px;
}
.sticker-only-button-card {
    width: 70px;
    padding: 4px;
}
.sticker-only-button-card .compact-slot-preview {
    min-height: 54px;
    height: 54px;
    border-radius: 10px;
}
.sticker-only-button-card .sticker-slot-preview img,
.sticker-only-button-card .keychain-slot-preview img {
    padding: 4px;
}
.keychain-only-button-card {
    width: 70px;
    max-width: 92px;
}
.keychain-only-button-card .compact-slot-preview {
    min-height: 54px;
    height: 54px;
}
.keychain-only-button-card .sticker-slot-title {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    margin-top: 6px;
    word-break: break-word;
}
.form-actions .btn-primary.equip-btn {
    min-width: 190px;
    min-height: 48px;
    padding: 0 24px;
    font-size: 15px;
}
@media (max-width: 640px) {
    .sticker-picker-grid.compact-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 92px));
    }
}

/* FINAL FIXES */
.stattrak-wrapper {
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom:15px;
}
.stattrak-label {
    font-size:13px;
    opacity:0.8;
}

.stickers-container {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.sticker-card,
.keychain-card {
    width:60px;
    height:60px;
    border-radius:10px;
    overflow:hidden;
    background: rgba(255,255,255,0.05);
    display:flex;
    align-items:center;
    justify-content:center;
}

.equip-btn {
    width:100%;
    padding:12px;
    font-size:14px;
    border-radius:10px;
}

/* FINAL FORCE FIX - equal size */
.stickers-container,
.keychains-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sticker-card,
.keychain-card {
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(33, 33, 33, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sticker-card img,
.keychain-card img {
    width: 80%;
    height: auto;
}

.skins-header-actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    margin-top:14px;
}
.inline-action-form {
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
}
.collection-form {
    flex-wrap:nowrap;
}
.collection-form--apply {
    flex:1 1 20px;
    min-width:min(100%, 420px);
}
.collection-action-group {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
}
.collection-select {
    min-width:260px;
    flex:1 1 auto;
    height:42px;
    border-radius:12px;
    border:1px solid var(--border);
    background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    color:var(--text);
    padding:0 12px;
}

.collection-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23E5E7EB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 14px center;
    background-size: auto, 16px 16px;
    padding-right: 42px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 20px rgba(2,6,23,0.18);
}
.collection-select option {
    color: #e5e7eb;
    background: #12161f;
}
.collection-select:focus {
    outline: none;
    border-color: rgba(255,140,0,0.38);
    box-shadow: 0 0 0 3px rgba(255,140,0,0.12), inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 24px rgba(2,6,23,0.22);
}

.header-note,
.page-status {
    margin-top:10px;
}
.danger-btn {
    border-color: rgba(239,68,68,0.35);
}
.danger-btn:hover {
    border-color: rgba(239,68,68,0.55);
}

.picker-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.picker-load-more-btn {
    min-width: 160px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}
.picker-load-more-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}
.picker-load-more-btn:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

@media (max-width: 920px) {
    .skins-header-actions,
    .inline-action-form,
    .collection-action-group {
        flex-direction:column;
        align-items:stretch;
    }
    .collection-form {
        flex-wrap:wrap;
    }
    .collection-form--apply,
    .collection-select {
        min-width:0;
        width:100%;
    }
}

.sr-only {
    position:absolute !important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.skins-inline-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:0;
}
.skins-inline-icon svg {
    width:100%;
    height:100%;
    padding: 2px 2px;
    display:block;
    fill:currentColor;
}
.category-filter-icon {
    width:28px;
    height:28px;
    color:rgba(255,255,255,0.92);
}
.category-selector button.active .category-filter-icon {
    color:#ffffff;
}
.category-info {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
}
.category-meta-icon {
    display:none !important;
}
.category-meta-svg {
    width:100%;
    height:100%;
}

.selected-badge-icons {
    position:absolute;
    top:10px;
    right:10px;
    z-index:3;
    display:flex;
    align-items:center;
    gap:7px;
    padding:0;
    font-size:0;
    background:transparent !important;
    box-shadow:none !important;
}
.selected-team-icon {
    width:18px;
    height:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:1px;
    border:1px solid rgba(255,255,255,0.16);
    border-radius:999px;
    background:transparent !important;
    color:rgba(255,255,255,0.74);
    box-shadow:0 0 0 1px rgba(2,6,23,0.12);
    cursor:pointer;
    transition:transform .18s ease, color .18s ease, opacity .18s ease, border-color .18s ease;
}
.selected-team-icon:hover {
    transform:translateY(-1px);
    border-color:rgba(255,255,255,0.24);
}
.selected-team-icon.active {
    transform:scale(1.05);
}
.selected-team-icon-t { color:#f59e0b; }
.selected-team-icon-ct { color:#38bdf8; }
.selected-team-icon-t.active { border-color:rgba(245,158,11,0.34); }
.selected-team-icon-ct.active { border-color:rgba(56,189,248,0.34); }

.team-selected-svg {
    width:100%;
    height:100%;
}
.selected-badge-icons .selected-team-icon:focus {
    outline:none;
    box-shadow:none;
}

.compact-thumb {
    padding:12px;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    border-bottom-left-radius:0 !important;
    border-bottom-right-radius:0 !important;
}
.compact-thumb img { padding:7px; }

.category-team-switches,
.team-detail-dots-only,
.team-dot-switches {
    display:none !important;
}

@media (max-width: 640px) {
    .category-filter-icon { width:24px; height:24px; }
    .selected-team-icon { width:18px; height:18px; }
}
/* User requested final polish: larger category images + colored card bottoms */
.weapons-grid .skin-card {
    border-bottom-width: 5px !important;
    border-bottom-style: solid !important;
}
.weapons-grid .skin-card:nth-child(8n + 1) { border-bottom-color: #ff9100 !important; }
.weapons-grid .skin-card:nth-child(8n + 2) { border-bottom-color: #8b5cf6 !important; }
.weapons-grid .skin-card:nth-child(8n + 3) { border-bottom-color: #06b6d4 !important; }
.weapons-grid .skin-card:nth-child(8n + 4) { border-bottom-color: #22c55e !important; }
.weapons-grid .skin-card:nth-child(8n + 5) { border-bottom-color: #ef4444 !important; }
.weapons-grid .skin-card:nth-child(8n + 6) { border-bottom-color: #eab308 !important; }
.weapons-grid .skin-card:nth-child(8n + 7) { border-bottom-color: #ec4899 !important; }
.weapons-grid .skin-card:nth-child(8n + 8) { border-bottom-color: #3b82f6 !important; }

.weapons-grid .category-thumb {
    padding: 8px 10px 6px !important;
}
.weapons-grid .category-thumb img,
.weapons-grid .compact-card .skin-thumb img {
    max-height: 112px !important;
    transform: scale(1.12);
}

/* Keep sticker/keychain picker cards with one clean border only */
.sticker-only-button-card,
.keychain-picker-card,
.sticker-card,
.keychain-card {
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-bottom-width: 1px !important;
    box-shadow: none !important;
}
.sticker-only-button-card .sticker-slot-preview,
.sticker-only-button-card .keychain-slot-preview,
.keychain-only-button-card .sticker-slot-preview,
.keychain-only-button-card .keychain-slot-preview,
.sticker-card img,
.keychain-card img {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* FINAL USER UPDATE - all skin cards, category height, no sticker/keychain borders */
.skin-card {
    border-bottom-width: 5px !important;
    border-bottom-style: solid !important;
}
.skin-card:nth-child(8n + 1) { border-bottom-color: #ff9100 !important; }
.skin-card:nth-child(8n + 2) { border-bottom-color: #8b5cf6 !important; }
.skin-card:nth-child(8n + 3) { border-bottom-color: #06b6d4 !important; }
.skin-card:nth-child(8n + 4) { border-bottom-color: #22c55e !important; }
.skin-card:nth-child(8n + 5) { border-bottom-color: #ef4444 !important; }
.skin-card:nth-child(8n + 6) { border-bottom-color: #eab308 !important; }
.skin-card:nth-child(8n + 7) { border-bottom-color: #ec4899 !important; }
.skin-card:nth-child(8n + 8) { border-bottom-color: #3b82f6 !important; }

/* Category page cards: slightly taller + bigger image area */
.weapons-grid .skin-card {
    min-height: 188px !important;
}
.weapons-grid .category-thumb {
    min-height: 124px !important;
    padding: 12px 12px 8px !important;
}
.weapons-grid .category-thumb img,
.weapons-grid .category-thumb img[data-team-image] {
    max-height: 126px !important;
    transform: scale(1.18) !important;
}

/* Choose a skin page: use same colored bottom border on every card */
#skinGrid .skin-card {
    border-bottom-width: 5px !important;
    border-bottom-style: solid !important;
}
#skinGrid .compact-card .skin-thumb img {
    max-height: 198px !important;
}

/* Stickers and keychains: remove borders completely */
.sticker-card,
.keychain-card,
.sticker-only-button-card,
.keychain-picker-card,
.keychain-only-button-card,
.sticker-slot-preview,
.keychain-slot-preview,
.compact-slot-preview,
.picker-tile .compact-slot-preview {
    border: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
.sticker-card::before,
.sticker-card::after,
.keychain-card::before,
.keychain-card::after,
.sticker-only-button-card::before,
.sticker-only-button-card::after,
.keychain-picker-card::before,
.keychain-picker-card::after,
.keychain-only-button-card::before,
.keychain-only-button-card::after {
    content: none !important;
    display: none !important;
}

/* FINAL FIX 2026-04-30: category cards match Choose a skin cards, sticker/keychain clean image-only */
.weapons-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
}

.weapons-grid .skin-card.compact-card {
    min-height: 0 !important;
    height: auto !important;
}

.weapons-grid .skin-card.compact-card .category-thumb,
.weapons-grid .compact-card .skin-thumb.category-thumb {
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 14px 12px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.weapons-grid .skin-card.compact-card .category-thumb img,
.weapons-grid .compact-card .skin-thumb.category-thumb img,
.weapons-grid .category-thumb img[data-team-image] {
    width: 100% !important;
    max-height: 198px !important;
    object-fit: contain !important;
    transform: none !important;
}

.weapons-grid .skin-card.compact-card .category-info,
.weapons-grid .compact-card .skin-info.category-info {
    min-height: 0 !important;
    height: auto !important;
    padding: 12px !important;
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
}

.weapons-grid .skin-card.compact-card .category-info strong,
.weapons-grid .compact-card .skin-info.category-info strong {
    font-size: 13px !important;
    line-height: 1.25 !important;
}

/* Keep colored 5px bottom borders on all normal skin/category cards */
.skin-card:not(.sticker-card):not(.keychain-card):not(.sticker-only-button-card):not(.keychain-picker-card):not(.keychain-only-button-card) {
    border-bottom-width: 5px !important;
    border-bottom-style: solid !important;
}

/* Stickers/keychains: no card border and no background, including preview boxes */
.sticker-card,
.keychain-card,
.sticker-only-button-card,
.keychain-picker-card,
.keychain-only-button-card,
.sticker-picker-card,
.sticker-slot-preview,
.keychain-slot-preview,
.compact-slot-preview,
.picker-tile .compact-slot-preview {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.sticker-card img,
.keychain-card img,
.sticker-slot-preview img,
.keychain-slot-preview img,
.compact-slot-preview img {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* FINAL UPDATE 2026-04-30: slightly bigger category images + soft sticker/keychain background */
.weapons-grid .skin-card.compact-card .category-thumb,
.weapons-grid .compact-card .skin-thumb.category-thumb {
    padding: 10px 10px 8px !important;
}

.weapons-grid .skin-card.compact-card .category-thumb img,
.weapons-grid .compact-card .skin-thumb.category-thumb img,
.weapons-grid .category-thumb img[data-team-image] {
    max-height: 215px !important;
    transform: scale(1.07) !important;
    transform-origin: center !important;
}

.sticker-card,
.keychain-card,
.sticker-only-button-card,
.keychain-picker-card,
.keychain-only-button-card,
.sticker-picker-card,
.sticker-slot-preview,
.keychain-slot-preview,
.compact-slot-preview,
.picker-tile .compact-slot-preview {
    background-color: rgba(154, 154, 154, 0.035) !important;
    border: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.sticker-card img,
.keychain-card img,
.sticker-slot-preview img,
.keychain-slot-preview img,
.compact-slot-preview img {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
