@font-face {
    font-family: 'SF Pro Display';
    src: url('https://major.tg/fonts/SFProDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('https://major.tg/fonts/SFProDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
}
@font-face {
    font-family: 'SF Pro Display';
    src: url('https://major.tg/fonts/SFProDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'SF Pro Display', sans-serif;
    background: #1C1C1D;
    color: #fff;
    overflow-x: hidden;
}


.rub-icon {
    width: 4px;          
    height: 4px;         
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.9;
    transform: translateY(-1px);
}


.header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2C2C2E;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

@media (min-width: 480px) {
    .nft-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 768px) {
    .nft-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.nft-card {
    background: #2C2C2E;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
}

.nft-card:hover {
    transform: translateY(-6px);
}

.nft-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.nft-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nft-badge-mini {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.badge-icon {
    width: 12px;
    height: 12px;
    color: #fff;
}

.nft-info {
    padding: 12px;
}

.nft-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.nft-price-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 6px;
}

.nft-price {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.ton-icon {
    width: 13px;
    height: 13px;
    vertical-align: middle;
}


/* --- модалки --- */

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-sheet {
    background: #2C2C2E;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.collection-list {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    scrollbar-width: none;
}

.collection-list::-webkit-scrollbar { display: none; }

.collection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.collection-item:hover {
    background: rgba(255,255,255,0.08);
}

.collection-info small {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin-top: 2px;
}


.checkbox-circle {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    display: flex; justify-content: center; align-items: center;
    transition: all 0.2s;
}

.symbol-white {
    filter: brightness(0) invert(1);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.tgs-box {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-text {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
}



.color-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.collection-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}


.checkbox-circle.active {
    background: #007AFF;
    border-color: #007AFF;
}

.collection-img {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.collection-info div {
    font-size: 15px;
    font-weight: 500;
}

.apply-btn {
    margin: 10px;
    background: #007AFF;
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
}
