* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

body {
    color: var(--tg-theme-text-color);
    background: var(--tg-theme-bg-color);
}

.beige_floor_ {
    display: none !important;
}

.display_none{
    display: none !important;
}

.show_stars{
    /*display: none !important;*/
}

.nonfrag{
    padding: 16px;
}

.lazy-image {
  opacity: 0.2;
  /*transition: opacity 0.3s;*/
  /* Можно добавить фон-заглушку, пока картинка грузится */ 
}

.lazy-image.loaded {
  opacity: 1;
}

.hidden{
    display: none !important;
}

.header{
    background: #364b6c;
    text-align: center;
    position: relative;
    height: 50px;
    padding-top: 10px;
    margin-bottom: 6px;
}

.Main {
    width: 100%;
    padding: 25px;
    text-align: center;
}

.Main.nft_selectors {
    position: sticky;
    top: 0px;
    z-index: 10;
    background: var(--tg-theme-bg-color);
}


.nft_selectors{
    float: left;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.nft_selectors.filter-hidden {
    /*position: static;*/
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none; /* чтобы нельзя было кликнуть по невидимому header */
}
.nft_selectors.filter-visible {
    position: sticky;
    opacity: 1;
    transform: translateY(0);
}

h1 {
    margin-top: 40px;
    margin-bottom: 10px;
}

p{
    /*    color: #444;*/    
    color: var(--tg-theme-accent-text-color);
}


.stop_scroll{
   height: 100%;
   overflow-y: hidden;
}

.main_title{
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}
.main_title span{
    font-weight: 700;
}

.img-no-bgr{
    background-image: none !important;
}

.loading_bottom{
    display: block;
    margin-bottom: 8px;
    /* padding-top: 10px; */
    position: fixed;
    bottom: 30px;
    left: 4px;
    right: 4px;
    background-color: white;
    border-radius: 5px;
    padding: 4px 44px;
    opacity: 1;
    z-index: 3;
    box-shadow: 3px 3px 5px #9aafff;

    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: none;
    background: var(--tg-theme-bg-color);
}

.loading_first{
    display: block;
    font-style: italic;
    font-weight: bold;
}
.loading_hide .loading_first {
    display: none;
}
.loading_first img, .loading_bottom img{
    width: 24px;
    height: 24px;    
    vertical-align: middle;

    animation: spin 2s ease-in-out infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  25% {
    /* Первые 25% времени (0.5 сек) элемент стоит на месте */
    transform: rotate(0deg);
  }
  75% {
    /* Следующие 50% времени (1 сек) он крутится до 360 */
    transform: rotate(360deg);
  }
  100% {
    /* Последние 25% времени (0.5 сек) он снова стоит на месте */
    transform: rotate(360deg);
  }
}

.btn_tg {
    border: 0;
    border-radius: 5px;
    margin-top: 50px;
    height: 60px;
    width: 200px;
    font-style: 20px;
    font-weight: 500;
    cursor: pointer;
    color: var(--tg-theme-button-text-color);
    background: var(--tg-theme-button-color);
}

.wallet_btn{
    width: 30px;
    height: 30px;

    width: 24px;
    height: 24px;
}
.new_model{
   /* background: #7fa1d6;*/
    display: inline;
    padding: 6px;
    border-style: hidden;
    border-radius: 12px;
}

form {
    /*display: none;*/
    text-align: center;
}

input.filterInput {
    outline: none;
    width: 224px;
    border-radius: 5px;
    border: 2px solid #535353;
    padding: 6px 10px;
    margin: 0px 0px 4px;
    background: var(--tg-theme-section-separator-color);
    color: var(--tg-theme-text-color);
    transition: all .2s;
}

.yoyo-popup-icon {
    width: 4rem;
    height: 4rem;
}

input:focus {
    border-color: var(--tg-theme-secondary-bg-color)
}

.relative{
    position: relative;
}
.items-center{
    align-items: center;
}

.font-semibold{
    font-weight: 600;
}

.wallet_info, .pay_stars_bar{
    position: absolute;
    right: 0;
    display: inline-flex;
    margin-right: 2px;
    cursor: pointer;

    display: block;
}
.wallet_info p, .pay_stars_bar p{
    font-size: 0.8em;
    font-weight: 500;
    margin-right: 2px;
    margin-top: 4px;
    color: #a1c7ff;

    margin-top: -6px;
}
.pay_stars_bar{
    right: 44px;
}
.pay_stars_bar img{
    width: 24px;
}
.pay_stars_bar p{
    margin: 0;
    margin-top: -6px;
}
.pay_stars_bar a{
  text-decoration: none !important;
}

.share_box{
    position: absolute;
    display: inline-flex;
    padding-left: 6px;
    left: 0;
    cursor: pointer;
}
.share_box img{
    width: 30px;
    height: 30px;
}

.list_info{
    padding: 16px;
}
.btn_clear_filter {
    padding: 4px;
    margin-top: 2px;
    border-style: none;
}

.btn_reset_price_range {
    display: none;
    margin-top: 8px;
    font-size: 0.7em;
    font-weight: 500;
    cursor: pointer;
    color: var(--tg-theme-subtitle-text-color);
    color: #c82626;

    -webkit-transition: width 1s ease-in-out;
    -moz-transition: width 1s ease-in-out;
    -o-transition: width 1s ease-in-out;
    transition: width 1s ease-in-out;
}
.btn_reset_price_range:active {
    background-color: var(--tg-theme-button-color);
    opacity: 0.35;
}
.btn_reset_symbol_filter, .btn_reset_bgr_filter, .btn_reset_input_filter{
    position: relative;
    right: 18px;
    top: 2px;
    margin-top: 5px;
    margin-right: 34px;
    font-weight: 500;    
    cursor: pointer;
    display: none;
}
.reset_nft_filter{
   position: absolute;
   margin-right: 0px;
   right: 16px;
   top: -2px;
}

.model_rarity{
    font-size: 0.6em;
    font-weight: 700;
    margin-left: 4px;
}
.wide .model_rarity{
    position: absolute;
    right: 0px;
    top: -9px;
}

.filterModel{
    margin-left: 12px;
}
.reset_model_filter{ 

   position: absolute;
    margin-right: 0px;
    right: 4px;
    top: -2px;
}
.btn_reset_number_filter{
    position: absolute;
    right: 4px;
    top: 0px;
    margin-top: 0px;
    font-weight: 500;
    cursor: pointer;
    font-size: 10pt;
}
.search_wrapper{
    width: 224px;
    display: block;
    position: relative;
}
.search_nft_wrapper{
    width: 244px;
    display: block;
    position: relative;
}
.select_model .search_wrapper{
    margin: 0 12px;
}
.load_error{
	color:red;
}

.market_info{
    position: absolute;
    left: 4px;
    font-size: 0.7em;
    display: none;
    z-index: 1;
}

.gift_item.sold .market_info{
    display: block !important;
    left: 26px;
    top: 2px;
    color: #dc1010;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
    font-weight: bold;
}
.gift_item.sold .gift-img{
    filter: grayscale(100%);
}
.gift_item.sold .btn_buy{
    filter: grayscale(100%);
}


.list.gifts .gift_item, .list.gifts .gift_collection{
    position: relative;
	display: inline-block;
	margin-left: 10px;
	margin-right: 10px;
    margin-bottom: 15px;
    max-width: 25%;
    min-width: 110px;
    box-shadow: 3px 3px 5px #9aafff;
    border-radius: 6px;
    overflow: hidden;
/*    border-style: groove;*/
}

.reset_filters {
    display: flex;
    position: fixed;
    bottom: 0px;
    width: 100%;
    justify-content: center;
    background: #fffffff0;
    padding: 5px;
    z-index: 2;
}

button.btn_reset_filters {
    padding: 6px;
    background: none;
    background-color: #eaeaea;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-image: url(res/trash_icon220.png);
    background-size: 24px;
    background-position-x: 4px;
    background-position-y: center;
    background-repeat: no-repeat;
    padding-left: 30px;
}

img.btn_scroll_top {
    position: fixed;
    bottom: 32px;
    right: 22px;
    width: 64px;
    opacity: 0.5;
    z-index: 2;
    /* height: 32px; */
}
.gift_item .g_price.stars{
    display: none;
}
.gift_item .g_info_container{
    text-align: left;
}
.stars_enabled .gift_item .g_price.stars {
    display: block !important;!i;!;
}
.stars_enabled .gift_item .g_price {
    display: none;
}

.stars_enabled .gift_collection .g_price.stars {
    display: block !important;!i;!;
}
.stars_enabled .gift_collection .g_price {
    display: none;
}

.model_collection .g_price, .nft_collection_set .g_price{
    text-align: center;
}


.gift_item p, .gift_collection p{
    word-break: auto-phrase;
    white-space: nowrap;
    overflow: hidden;
}
.gift_item .g_model, .gift_collection .g_models{
    font-size: 0.7rem;
    margin-bottom: 2px;
    min-height: 15px;
}

.popup_gift .g_attr{
    font-size: 0.8rem;
}

.gift_item .g_price, .gift_collection .g_price{
    font-size: 0.9rem;
}

.gift_collection .g_title{
    font-size: 1.2em;
}

.list .gift_item .gift-img, .popup_gift .image-container img{
    max-width: 100%;
    background-image: url('res/gift_placeholder.jpg');
    background-size: 100% 100%;
    min-width: 110px;
    min-height: 110px;
}

.non-fragment-img{
    padding: 16px;
}

.market-logo{
    position: absolute;
    left: 2px;
    top: 2px;
    font-size: 0.7em;
    width: 20px;
    height: 20px;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 100px;
    z-index: 1;
}

.premarket_filter_icon svg{
    width: 16px;
    color: #ac2c5f;
}

.item_wrapper {
    width: 100%;
    display: flex;
    overflow: scroll;
    height: 100%;
    margin-top: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lottie_container{
    display: block; 
    /*height: 100%; */
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    top: 0px;
}
.animation_switch {
    vertical-align: middle;
    margin-top: -2px;
}
.animation_switch .switch_title {
    color: white;
    font-size: 10pt;
    font-weight: 400;
}
.animation_switch label.switch {
    vertical-align: middle;
    left: 16px;
}

.select_model .dropdown_container.wide {
    left: 0px;
    width: 100%;
}

.all_models{
    display: flex !important;
}
.select_model .options {
    padding-left: 4px;
}
.select_model .wide .options {
    display: flex;
    flex-wrap: wrap;
}

.select_model .wide .options div.model_name {
    border: 1px solid #EFEFEF;
    border-radius: 15px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.popup_gift .image-container{
    width: 100%;
    min-height: 250px;
    min-width: 250px;
    aspect-ratio: 1 / 1;
}

.icon_premarket, .icon_premarket_popup{
    display: none;
    position: absolute;
    left: 4px;
    top: 4px;
    color: #ac2c5f;
    background: #1e293bc7;
    border-radius: 5px;
    padding: 1px;
}

.icon_premarket_popup{
  left: 45px !important;  
}
.gift_premarket .icon_premarket, .label_premarket_show{
    display: flex !important;
}
.gift_collection .icon_premarket{
    top: 115px;
    color: #ee1d70;
}
.label_premarket_popup_description{
    display: none;
    overflow: visible;
    white-space: normal !important;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
    color: #d22a6d !important;
    font-weight: 600;
}

.icon_premarket_popup_show{
    display: flex !important;
}

.gift_premarket .premarket_padding{
    padding: 10px;
}

.label_portals_withdraw_description{
    display: none;
    overflow: visible;
    white-space: normal !important;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
    color: #0098eb !important;
    font-size: 10pt;
    font-weight: 400;
}
.label_portals_withdraw_description .portals_ico{
    width: 16px;
    position: relative;
    top: 3px;
    margin-right: 2px;
}

.gift_collection{
    min-width: 120px;
}

.gift_collection img{
    max-width: 100%;
    background-size: 100% 100%;

    max-width: 74px;
}
.gift_collection .giftimg-box{
    min-height: 110px;
    text-align: center;
}
.giftimg-box.regular_gift img{
    background-image: none !important;
    background-color: #d3e6ff;
    padding: 16px;
}
.list.gifts{
    container-name: g_info_container;
    --theme: var(--tg-color-scheme);
    padding-bottom: 25px;
    text-align: center;
}
.gift_collection .g_info_box{
    margin-top: 8px;
    text-align: center;
}

span.mod_crafted {
    background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1));
    border-radius: 9999px;
    padding-top: 2px;
    padding-bottom: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.6em;
    line-height: 10px;
    height: 16px;
    margin-top: 4px;
    color: rgb(255 255 255);
    margin-left: 2px;
    font-weight: bold;
}

.noncraftable-ico, .craftable-ico{
    position: absolute;
    right: 2px;
    top: 2px;
    background: #00000029;
    border-radius: 3.40282e38px;
    width: 25px;
    height: 25px;
    color: white;
}

.noncraftable-ico svg, .craftable-ico svg{
    width: 18px;
    height: 25px;
}

.wide .mod_crafted{    
    position: absolute;

    top: -4px;
    right: 5px;

    font-size: 0.5em;
    line-height: 7px;
    height: 12px;
}
.select_model:not(.big_icons) .wide .mod_crafted{
    font-size: 0.5em;
    top: -2px;
}

.model_collection .g_models{
    text-align: center;
}
.collection_set{
    min-width: 170px !important;
}
.gift_collection.collection{
    min-width: 120px !important;
}
.collection_set img {
    width: 124px !important;
    max-width: none;
    border-radius: 12px;
}
.gift_collection.collection img {
    width: 120px !important;
    max-width: none;
}

.btn_x{
    background-image: url(res/close-x.png);
    width: 24px;
    height: 24px;
    background-color: transparent;
    border: transparent;
    background-size: 24px 24px;
    right: 10px;
    top: 10px;
    position: absolute;
    cursor: pointer;
}
.options.op_sort{
    border-radius: 5px;
    padding: 10px 6px;
}
p.sort_title {
    font-weight: bold;
}

.select_model .dropdown_container{
    text-align: left;
    min-width: 245px;
    padding-top: 40px;
}

.select_nft .dropdown_container{
    top: 36px;
    padding: 40px 0px;
}
.select_nft .options{
    min-width: 252px;
}

.g_title {
    word-break: auto-phrase;
    white-space: nowrap;
    margin-bottom: 2px;
}

.hint_select_nft{
    padding: 5px;
        font-weight: 600;
        margin-bottom: 10px;
        display: block;
}
.hint_select_nft span{
    padding: 3px;
    color: gray;
    box-shadow: 2px 3px 2px #9aafff4f;
    border-radius: 6px;
    display: inline-block;
    margin-left: 5px;
}

.g_info_container{
    padding-left: 4px;
}
.gift_item .g_info_box{
    justify-content: space-between;
    display: flex;
    align-items: center;
    margin-top: 0px;
}
.g_number{
    font-size: 10px;
/*    margin-right: 1px;*/
    position: absolute;
    right: 1px;
    background: var(--tg-theme-bg-color);
}

.big_image_wrapper{
    padding: 0px 30px;
    /*margin-top: -60px;*/
}


.giftimg-box{
    cursor: pointer;
}
.gift_item .btn_buy{
    background-color: transparent;
    background-image: url(res/buy_rub128.png);
    background-size: 32px;
    width: 32px;
    height: 32px;
    /* position: fixed; */
    /* left: 10px; */
    position: absolute;
    bottom: 0px;
    right: 0;
    border: none;
    cursor: pointer;
    background-repeat: no-repeat;
}

.transform_onactive:active, .transform_onactive:focus{
    transform: scale(0.94);
}

/* dropdown */
.dropdown {
    width: 200px;   
    background-color: var(--tg-theme-section-bg-color);
/*    border: 1px solid #e2e2e2;*/

    display: inline-block;
    float: left;
}
.dropdown .dropdown_container{    
    top: 36px;
    display: none;
    position: absolute;
    z-index: 2000;
    box-shadow: 0px 0px 6px 2px #9aaffffc;
    border-radius: 6px;
    background: var(--tg-theme-bg-color);
}
.dropdown .options {
    position: relative;
    background: var(--tg-theme-bg-color);
    max-height: 75%;
    z-index: 9999; 
    overflow-y: auto;
/*    box-shadow: 2px 2px 3px #9aafffab;*/
    max-height: 80vh;

}
.dropdown .options div {
    position: relative; 
/*    height: 30px;*/
    padding: 5px 5px 5px 5px;
    cursor: pointer;
    line-height: 30px;
    text-align: left;
    display: flex;
    background-color: var(--tg-theme-bg-color);

}
.dropdown .options div:nth-of-type(2n+1){
/*    background-color: var(--tg-theme-section-separator-color);*/
}

.dropdown .select-items {
    box-shadow: 2px 2px 3px #9aafff63;
    position: relative; 
    height: 30px;
/*    padding: 5px 50px 5px 5px;*/
    cursor: pointer;
    line-height: 30px;
    border: none;
/*    1px solid var(--tg-theme-section-separator-color);*/
    overflow: hidden;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
}
.select_nft .select-items{
    padding-left: 9px;
}
.select_nft img.dropdown_nft_icon{
    width: 24px;
    height: 24px;
    position: absolute;
    left: 0px;
    top: 5px;
}
.select_nft{
    container-name: select_nft;
    --theme: var(--tg-color-scheme);
}
.select_nft .beige_new{
    background-color: rgb(34 197 94);
    border-radius: 9999px;
    padding-top: 2px;
    padding-bottom: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.5em;
    line-height: 10px;
    height: 14px;
    margin-top: 4px;
    color: rgb(255 255 255);
    margin-left: 2px;
    font-weight: bold;
}
.select_nft .beige_floor{
    background-color: rgb(200 199 199);
    border-radius: 9999px;
    padding-top: 2px;
    padding-bottom: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.6em;
    line-height: 10px;
    height: 14px;
    margin-top: 4px;
    color: rgb(53 53 53);
    margin-left: 2px;
    font-weight: bold;
}
.gift_collection .beige_new{
    position: absolute;
    right: 4px;
}
.select_nft .beige_craft{
    background-color: rgb(168 85 247);
    border-radius: 9999px;
    padding-top: 2px;
    padding-bottom: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.5em;
    line-height: 10px;
    height: 14px;
    margin-top: 4px;
    color: rgb(255 255 255);
    margin-left: 2px;
    font-weight: bold;
}

.select-items.enabled, .select-items.green{
    box-shadow: 2px 2px 3px #5bbe5d;
}
.select-items.red {
    box-shadow: 2px 2px 3px #c83b66;
}
.select-items:active{
    background: var(--tg-theme-section-separator-color);
}
.dropdown_container .options div:active{
    background: var(--tg-theme-section-separator-color);
}

.dropdown .options img{
	width: 40px;
	margin-right: 5px;
}
.dropdown .options p{
	display: inline-block;
    align-content: center;
}

.select_nft.stars_enabled .floor_rub{
    display: none !important;
}
.select_nft.stars_enabled .floor_stars{
    display: block !important;
}

.dropdown.select_nft{
    background-size: 28px;
    background-repeat: no-repeat;
    background-position-x: 20px;
    background-position-y: 1px;
}

.options .collections{
    font-weight: 500;
}

.dropdown_container, .pop{
    container-name: dropdowncontainer;
    --theme: var(--tg-color-scheme);
}

body{
    container-name: body-container;
    --theme: var(--tg-color-scheme);
}

.dropdown_container.price_range {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    padding: 16px;
    margin-left: 0px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
    justify-items: center;
    padding-bottom: 8px;
    background-color: var(--tg-theme-bg-color);
}

.price_range.price_fix_screen {
    right: 0px;
}

.yoyo-popup-content {
    background-color: var(--tg-theme-bg-color) !important;
}

.borderd-content {
  border: 1px solid #bbbbbb00;
  border-radius: 4px;
  min-height: 36px;
  margin-top: 0px;
  position: relative;
  display: flow-root;
  background-color: var(--tg-theme-bg-color);
}

.borderd-content .title {
  margin: -12px 0 0 10px;
  /*background: var(--tg-theme-bg-color);;*/
  padding: 3px;
  display: inline-block;
/*  font-weight: bold;*/
  position: absolute;
  left: 10px;
  font-size: 12px;
  z-index: 100;
}

.borderd-content .content {
  padding: 10px;
}

.dropdown_container.price_range input{
    width: 80px;
    padding: 6px 6px 5px 28px;
    font-weight: 600;
    background-color: var(--tg-theme-secondary-bg-color);
    border-radius: 8px;
    border-color: var(--tg-theme-bottom-bar-bg-color);
    color: var(--tg-theme-text-color);
}
.input_price_max{
    margin-left: -20px;
}


.price_min{
    position: absolute;
    left: 22px;
    margin-top: 2px;
    color: var(--tg-theme-subtitle-text-color);
}
.price_max{
    position: relative;
    left: 10px;
    color: var(--tg-theme-subtitle-text-color);
}
button.apply_price {
    position: relative;
    padding: 6px 8px;
    margin-top: 10px;
    right: 0px;
    width: 172px;
    display: block;
    background-color: var(--tg-theme-button-color);
    border-radius: 8px;
    border: 0;
    font-weight: 600;
    /* color: var(--tg-theme-button-text-color); */
}

.beige_new_collection{
    background-color: rgb(34 197 94);
    border-radius: 9999px;
    padding-top: 2px;
    padding-bottom: 0;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    font-size: 0.5em;
    line-height: 10px;
    height: 14px;
    margin-top: 0px;
    color: rgb(255 255 255);
    margin-left: 2px;
    font-weight: bold;
    position: absolute;
    right: 4px;
    top: 1px;
}

.gifts .beige_new_collection{
    right: 4px !important;
}

.beige_new_collection.mart8{
    background-color: #f134c5;
    font-size: 0.7em;
    right: 1px;
    top: 0px;
}
@media (min-width: 1025px) {
    .beige_new_collection.mart8 {
        right: 3px;
        top: 2px;
    }
}

/*popup window*/
.backdropspop {
    background: var(--tg-theme-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    cursor: default;
    display: none;
    text-align: left;
    width: 90%;
    max-width: 400px;
    padding: 25px 25px 20px;
    left: 50%;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 2px 2px 3px #9aafffab;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);

    position: absolute;
    top: 36px;
    min-height: 230px;
    height: calc(100vh - 110px); 
    height: calc(100dvh - 110px); 
}
.backgrop_hidden_filter_list, .symbols-box{
    overflow: auto;
    position: absolute;
    top: 136px;
    bottom: 40px;
    left: 34px;
    right: 0;
    padding-bottom: 14px;
}
.all-symbols{
    margin-left: 9px;
}
.backgrop_hidden_filter_list{
    top: 144px;
}

.backdropspop .color_search_box{
    margin-left: 8px;
    margin-bottom: 6px;
    
}
.symbol_search_box{
   margin-left: 8px;
   margin-bottom: 6px; 
}

.backdropspop, .symbolspop {
    min-width: 278px;
}
.symbol_search_box, .color_search_box{
    min-width: 280px;
}

.backdropspop label {
  display: block;
  margin-bottom: 3px;
  padding-left: 15px;
  text-indent: -15px;
}

.backdropspop p, .backdropspop.div, .symbolspop p {
  border-bottom: 1px solid #EFEFEF;
  margin: 8px 0;
  padding-bottom: 8px;
}

.color_in_filter {
    border-radius: 999px;
    width: 24px;
    height: 24px;
}

.btn.apply_backdrop, .btn.apply_symbols{
    color: var(--tg-theme-button-text-color);
    background: var(--tg-theme-button-color);

    border: 0;
    border-radius: 5px;
/*    margin-top: 50px;*/
    height: 44px;
    width: 200px;
    font-style: 20px;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    bottom: 2px;
    left: calc(50% - 100px);
}

.symbols_list .checkbox_item img{
    width: 16px;
    width: 16px;
    margin-right: -4px;
}



.option_color_filter.opt_for_fil, .checkbox_item.opt_for_fil{
    padding: 8px 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 12px;
    line-height: 142%;
    letter-spacing: 0.01em;
    text-align: center;
    /* color: #fff; */
}
.option_color_filter .svg_check rect:nth-child(2), .checkbox_item .svg_check rect:nth-child(2) {
  display: none;
}
.option_color_filter .svg_check path, .b_symbol .svg_check path{
  display: none;
}

.option_color_filter.checked .svg_check rect:nth-child(2), .option_color_filter.checked .svg_check path,
.checkbox_item.checked .svg_check rect:nth-child(2), .checkbox_item.checked .svg_check path{
    display: block !important;
}

.option_color_filter.color_item_pinned{
    margin-left: 9px;
}
 
/* -- */

/* узор */
.symbolspop {
    background: var(--tg-theme-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    cursor: default;
    display: none;
    text-align: left;
    width: 90%;
    max-width: 400px;
    padding: 25px 25px 20px;
    left: 50%;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 2px 2px 3px #9aafffab;

    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    position: absolute;
    top: 36px;
    min-height: 230px;
    height: calc(100vh - 110px);
    height: calc(100dvh - 110px);
}

/* search by num */
.input_search_num{
    width: 96px;
    padding: 4px 6px 6px 4px;
    font-weight: 600;
    background-color: var(--tg-theme-bg-color);
    border-radius: 8px;
    border-color: transparent;
    color: var(--tg-theme-text-color);
    outline-width: 0;
    border-style: none;
}

.popup_gift .g_number{
    color: #98ebff;
    cursor: pointer;
}

/* popup gift */
.popup_gift{
        height: 100%;
        background: #1e293b;
        position: fixed;
        z-index: 200;
        width: 100%;
        top: 0px;
        overflow: hidden;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-align: center;
        -webkit-align-items: center;
        -webkit-box-align: center;
        align-items: center;
        justify-content: center;
}
.popup_gift .gift_item{
    position: relative;
    width: 100%;
    max-width: min(450px, 98%);
    margin: auto auto;
    top: 50px;

    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
}
.popup_gift .gift_item img{
    border-radius: 10px;
}
.popup_gift .g_number{
    background: none !important;
    font-weight: 600;
    font-size: 16px;
    position: static;
}
.popup_toolbar{
    background: #364b6c;
    height: 50px;
    width: 100%;
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    z-index: 2;
}
.popup_toolbar .close_btn{
    background-image: url('res/close-button.png');
    background-size: 100%;
    width: 42px;
    height: 42px;
    background-repeat: no-repeat;
    margin: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.popup_toolbar .share_btn{
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 5px;
    margin-top: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.popup_toolbar .img_share_btn{
    width: 42px;
    height: 42px;
    padding: 4px;
}
.popup_gift .btn_buy_gift{
    min-width: 88px;
    margin-right: 4px;
    border: 0;
    border-radius: 5px;
    height: 40px;
    cursor: pointer;
    background: #0098eb;
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.25rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    width: 100%;
    color: #f8fafc;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}
.btn_buy_gift.disabled{
    background: gray !important;
}
.viewopentg {
    display: block;
    height: 40px;
}
.user_accept{
    white-space: normal !important;
    padding: 3px;
    color: #959595 !important;
    font-size: 8pt;
    font-weight: 400;
    margin-top: 6px;
}
button.btn_tg_open_nft.transform_onactive {
    display: block;
    height: 40px;
    border: none;
    margin-right: 4px;
    cursor: pointer;
    min-width: 122px;
    background: #0098eb;
    border-radius: 5px;
    color: #f8fafc;
    font-weight: 500;
    font-size: .875rem;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

img.tg-open-icon {
    position: relative;
    right: calc(0px - 80% - 1px);
    top: -44px;
    height: 22px;
    width: 22px;
}
.popup_gift .btn_share {
    width: 40px;
    height: 40px;
    background-color: #0098eb;
    border: none;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    color: #f8fafc;
    padding: 3px 8px 0px;
    border-radius: calc(0.5rem - 2px);
    cursor: pointer;
}
.popup_gift .btn_share:hover, .popup_gift .btn_buy_gift:hover{
    background-color: #0098ebe6;
}

.popup_gift p {
    color: #f8fafc;
}
.popup_gift p a{
    color: #98ebff;
}
.popup_gift .g_title{
    font-size: 18px !important;
}
.popup_gift .action-box{
    display: flex;
    
    margin-top: 6px;
}

.popup_gift .btn_tg_open_nft{
    border: none;
    background: none;
    margin-right: 4px;
    cursor: pointer;
}

.popup_gift .btn_tg_open_nft img{
    border-radius: 9999px;
    background: none;
    width: 40px;
    height: 40px;
}
.popup_gift .label_sold{
    display: none;    
    position: absolute;
    left: 10px;
    top: 10px;
    color: red;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
}
.popup_gift .label_craft_status{
    display: none;    
    position: absolute;
    right: 10px;
    top: 10px;
    color: #f0aaaa;
    background: #2f3236c7;
    border-radius: 6px;
    padding: 3px;
    align-items: center;
    gap: 6px;
}

.label_craft_status svg{
    width: 24px;
    height: 24px;
    color: white;
}

.craf_icon {
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 0.7em;
    width: 30px;
    height: 30px;
    z-index: 1;
    /* min-width: 27px !important; */
    min-height: 29px !important;
    border-radius: 100px;
    border-radius: 3.40282e+38px;
    background-color: rgba(15, 15, 15, 0.16);
    color: white;
    padding: 5px;
}

.craf_icon svg{
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 0.7em;
    width: 20px;
    height: 20px;
    z-index: 1;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 100px;
    color: white;
}

.craft-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b2b33, #1a1a20);
  color: #fff;
  font: 500 14px/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.craft-toast.craft-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.craft-toast__icon {
  font-size: 18px;
}

.craft-toast__icon svg{
    width: 20px;
    height: 20px;
}

.craft-toast__text {
  white-space: pre-line; /* \n превращается в перенос, пробелы схлопываются как обычно */
}

.craft-toast--error {
  background: linear-gradient(135deg, #4a1f1f, #2a1212);
  border-color: rgba(255, 120, 120, 0.3);
}

div.discount_alert, div.stop_alert{
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
    display: inline-block;
    width: 90%;
    margin: 5px;
    padding: .75rem 1.25rem;
    margin-bottom: 0rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-weight: bold;
    margin-left: -4px;
    display: none;
}

.stop_alert {
    display: flex !important;
    margin: 30px !important;
    top: 10px;
    position: relative;
}

div.nopremarket{
    width: 200px;
    padding-left: 6px;
    padding-top: 4px;
    width: 200px;
    display: none !important; 
}
.model-view-checkbox{
    display: flex
}
.checkbox_container {
  display: flex;
  position: relative;
  padding-left: 28px;
  margin-bottom: 0px;
  padding-top: 2px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-weight: 600;
}
.checkbox_container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.wide{
    transition: width 0.5s ease-in-out;
}
.checkbox_container .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 6px;
}
.checkbox_container.big_models, .checkbox_container.grid_view{
    min-height: 26px;
    left: 12px;
    margin-top: 2px;
    font-weight: normal;
    font-size: 12px;
}
.checkbox_container.grid_view{
    margin-left: 8px;
}

.nft_active, .model_active {
    background: var(--tg-theme-section-separator-color) !important;
}

.dropdown.big_icons .options img {
    width: 64px !important;
}

/* test */
.img_large{
    align-self: center;
    min-width: 250px !important;
    min-height: 250px !important;
}
.popup_gift .image-container{
    display: flex;
    justify-content: center;
}
/* test */


.checkbox_container:hover input ~ .checkmark {
  background-color: #ccc;
  border-radius: 6px;
}
.checkbox_container input:checked ~ .checkmark {
  background-color: #ac2c5f;
  border-radius: 6px;
}
.checkbox_container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox_container input:checked ~ .checkmark:after {
  display: block;
}
.checkbox_container .checkmark:after {
  left: 6px;
  top: 4px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* --  */

.tonnel_listed {
    position: fixed;
    bottom: 0;
    right: 4px;
    font-size: 0.6em;
    opacity: 0.4;
    z-index: 2;
}

.checkbox_container.show_stars{
    /*display: none !important;*/
    margin-top: 10px;
}

/* grid view models */
.select_model .wide .options .model_name{ /* grid */
        vertical-align: middle;
        position: relative;
        display: grid ;
        justify-content: center;
        align-items: center;
        width: 96px;
        width: 70px;
        text-align: center;
        display: block;
}
.select_model.big_icons .wide .options .model_name{
    width: 84px;
    display: block;
    text-align: center;
}
.dropdown.big_icons .wide .options img{
    width: 74px !important;
}
.dropdown .wide .options p.m_title{
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    overflow: hidden;
    text-align: center;
}
/* /.grid view models */

.options .all_nft{
    padding-left: 42px !important;
    font-weight: 500;
}

.options .all_models{
    padding-left: 0px;
    font-weight: 500;
}

.options .all_models:first-child{
    padding-left: 42px;
}
.wide .options .all_models:first-child{
    padding-left: 0px !important;
}

.options .all_models p.m_title{
    font-weight: 600 !important;
}



div.add-collection{
    background-image: url(res/icon-collection-on.png);
    width: 28px;
    height: 28px;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #1e293bc7;
    /* padding: 4px; */
    background-position: 2px;
    border-radius: 5px;
}


@media (min-width:320px)  {
    body{
        
    }

    .list.gifts .gift_item, .list.gifts .gift_collection{
        margin-left: 5px;
        margin-right: 5px;
        max-width: 30%;
        width: 30%;
    }

    list .gift_item img, .popup_gift .image-container img{
        max-width: 100%;
        /*    min-height: 100px;*/
/*        background-image: url('gift_placeholder.jpg');*/
        background-size: 100% 100%;

        min-width: 100px;
        min-height: 100px;
        
    }

    .list.gifts .gift_collection.collection{
        width: 20%;
    }

    .gift_collection.collection{
        min-width: 110px !important;
    }

    .gift_collection.collection img{
        width: 110px !important;
    }

    .Main{
        padding: 8px;
    }

    .dropdown{
        width: 122px;
        margin-top: 2px;
    }

    .dropdown.select_nft{
        background-position-x: 4px;
    }

    .g_title{
        font-size: 11px;
        font-weight: 500;
    }
    
    .gift_collection{
        min-width: 100px;
    }
    .gift_collection .g_title {
        font-size: 0.8em;
    }

    .price-box{
        /*display: flex;
        width: 100%;*/
    }

    .select_model{
        width: 90px;
    }

    .dropdown .select-items {
        font-size: 0.75em;
    }

    .icon_premarket span {
        font-size: 0.9em;
    }
    div.nopremarket{
        display: flex;
    }
}

@media (max-height: 480px){
    .list.gifts .gift_item, .list.gifts .gift_collection{
        max-width: 20%;
    }
    .popup_gift .gift_item{
        max-width: min(360px, 98%);
    }
}

@media (min-width: 544px){
    .select_model .wide .options .model_name{ /* grid */
            vertical-align: middle;
            position: relative;
            display: flex ;
            justify-content: flex-start;
            align-items: center;
            width: 170px !important;
        }
    .dropdown.big_icons .wide .options img{
        width: 64px !important;
    }
    .dropdown .wide .options p.m_title{
        font-size: 16px;
        font-weight: normal;
        line-height: 30px;
        overflow: hidden;
    }
    .options .all_models{
        padding-left: 42px !important;
        font-weight: 500;
    }
    .wide .options .all_models:first-child{
        padding-left: 42px !important;
    }
    .wide .mod_crafted {
        top: 4px;
        right: 6px;
        height: 16px;
        line-height: 10px;
        font-size: 0.6em;
    }
}

@media (min-width:700px)  {
    .list .gift_item .gift-img{
        min-height: 130px;
    }
    .list.gifts .gift_item{
        max-width: 180px;
    }

    .wide .model_rarity{
        position: relative;
    }
}


@media (min-width:1025px)  {
    .dropdown.big_icons .wide .options img{
        width: 100px !important;
    }
    .select_model.big_icons .wide .options .model_name{
        text-align: center;
        display: block;
    }
    .select_model.big_icons .wide .options .model_attr{
        display: block;
        text-align: center;
    }
    .big_icons .wide .options .model_rarity{
        position: absolute;
        top: 0px;
    }

   .list.gifts .gift_item, .list.gifts .gift_collection{
        max-width: 200px;
    }
    .list .gift_item .gift-img{
        min-width: 190px;
        min-height: 190px;
    }

    .gift_item .btn_buy{        
        background-size: 36px;
        width: 36px;
        height: 36px;        
    }

    .g_title{
        font-size: inherit;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .gift_collection {
        min-width: 160px;
    }
    .gift_collection .g_title {
        font-size: 1.2em;
    }

    .select_model{
        width: 122px;
    }

    .dropdown .select-items {
        font-size: 0.9em;
    }

    .dropdown{
        width: 200px;
    }
    .btn_reset_number_filter{
        right: 42px;
    }

    .price-box{
       /* display: block;
        width: 100%;*/
    }

    .icon_premarket span {
        font-size: 1em;
    }
    div.nopremarket{
        display: block;
    }

    .beige_new_collection{
        right: 28px;
    }
}

@container body-container style(--theme: dark){
    .reset_filters{
        background: var(--tg-theme-bg-color);
    }
    .btn_reset_filters{
        background-color: #3d3d3d !important;
        color: #bbc7d9 !important;
    }
}

@container dropdowncontainer not style(--theme: dark){
    .dropdown_container .btn_x, .pop .btn_x{
        filter: invert(10%) sepia(3%) saturate(3%) hue-rotate(130deg) brightness(0%) contrast(81%);
    }
}

@container select_nft style(--theme: dark){
    .select_nft .beige_floor{
        background: #5976a4 !important;
    }
}
@container g_info_container style(--theme: dark) {

    .g_info_container p {
        color: #bbc7d9 !important;
    }

    .gift_item{
        box-shadow: 3px 3px 5px #363c50 !important;
    }

    

}

@container g_info_container not style(--theme: dark) {
  .g_info_container p {
        color: #1b3939 !important;
    }
}
