@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined");
/*
:root {
    --size: 14px;
    --family: "Alegreya";
}*/
:root {
    --tg-color-scheme: dark;
    --tg-theme-bg-color: #1e1e1e;
    --tg-theme-section-bg-color: #191819;
    --tg-theme-secondary-bg-color: #000000;
    --tg-theme-text-color: #ffffff;
    --tg-theme-hint-color: #7d7d7d;
    --tg-theme-link-color: #a183d2;
    --tg-theme-button-color: #a583da;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-header-bg-color: #252425;
    --tg-theme-accent-text-color: #af90df;
    --tg-theme-section-header-text-color: #b995e4;
    --tg-theme-subtitle-text-color: #7f7e7f;
    --tg-theme-destructive-text-color: #ee686f;
    --tg-viewport-height: 100vh;
    --tg-viewport-stable-height: 100vh;
    --tg-theme-section-separator-color: #000000;
    --tg-theme-bottom-bar-bg-color: #000000;
    --shadow-alpha: 0.15;
    transition:
    --shadow-color 0.3s ease,
    --shadow-alpha 0.3s ease;
    --not-tg-theme-button-color: #ee686f;
}

body {
    position: relative;
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    margin: 0 auto;
    max-width: 460px;
    min-width: 240px;
    box-sizing: border-box;
}

@keyframes background {
    50% {
        background: var(--tg-theme-secondary-bg-color);
    }
}
@viewport {
    width: device-width;
    zoom: 1.0;
    min-zoom: 1.0;
    max-zoom: 1.0;
    user-zoom: fixed;
}

/* Для iOS */
@supports (-webkit-touch-callout: none) {
    .messages {
        max-height: -webkit-fill-available;
    }
}
.hr {
    background: var(--tg-theme-hint-color);
}
img {
    pointer-events: none;
}
#webapp .main-gallery {
    background: var(--tg-theme-bg-color);
}

#webapp .main-gallery a {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
}
#webapp .main-gallery a.active {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.container {
    color: var(--tg-theme-text-color);
}

.description_category {
    color: var(--tg-theme-hint-color);
    word-break: break-all;
}

.cardProduct {
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 0px 30px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
}

.cardProduct.incart {
    border-bottom: 2px solid var(--tg-theme-button-color);
}

.cardProduct button {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.cardProduct button.btnInCart {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
}

.cardProduct .groupBtn input {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
}

.cardProduct h3 {
    color: var(--tg-theme-text-color)
}

.cardProduct p {
    color: var(--tg-theme-hint-color);
}

.product picture img {
    box-shadow: 0px 0px 10px 5px var(--tg-theme-secondary-bg-color);
}

.product .desc, .product .variable_description {
    color: var(--tg-theme-hint-color);
}

.product .variable_title {
    color: var(--tg-theme-hint-color);
}

.text-hint {
    color: var(--tg-theme-hint-color) !important;
}

.iRating table td .desc {
    color: var(--tg-theme-hint-color);
}

.iRating .variable_title {
    color: var(--tg-theme-hint-color);
}

.iCart table td .desc {
    color: var(--tg-theme-hint-color);
}

.iCart .variable_title {
    color: var(--tg-theme-hint-color);
}

.alert-icon span {
    color: var(--tg-theme-hint-color);
}

.iOrder .variable_title {
    color: var(--tg-theme-hint-color);
}

.iTable .variable_title {
    color: var(--tg-theme-hint-color);
}

.tableDesc {
    color: var(--tg-theme-hint-color);
}

.policy {
    color: var(--tg-theme-hint-color);
}

.policy .ajaxLink {
    color: var(--tg-theme-link-color);
}

.iContact .variable_title {
    color: var(--tg-theme-hint-color);
}

.elem_order .shipping {
    color: var(--tg-theme-hint-color);
}

.btn-repeat {
    color: var(--tg-theme-link-color);
}


.label-secondary-bg {
    background: var(--tg-theme-secondary-bg-color);
}

.label-theme-bg {
    background: var(--tg-theme-bg-color);
}

.product picture img {
    box-shadow: 0px 0px 10px 5px var(--tg-theme-secondary-bg-color);
}
.product .variable {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.form_radio_btn label span {
    color: var(--tg-theme-button-color);
}

.form_radio_btn input[type=radio]:checked + label, .form_radio_btn input[type=checkbox]:checked + label {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.form_radio_btn input[type=checkbox]:checked + label span, .form_radio_btn input[type=radio]:checked + label span {
    color: var(--tg-theme-button-text-color);
}

.notification {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-hint-color);
}

.notification table {
    color: var(--tg-theme-text-color)
}

.notification table thead tr {
    color: var(--tg-theme-hint-color);
}

.notification table td {
    border-bottom: 1px solid var(--tg-theme-secondary-bg-color);
}

.quantity {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color)
}

.quantity .btn-outline-secondary {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: 1px solid var(--tg-theme-button-color);
}

.quantity .input-group .btn {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color) border: 1px solid var(--tg-theme-secondary-bg-color);
}

.quantity .input-group input {
    color: var(--tg-theme-text-color)
}

.iRating textarea {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color) border: 1px solid var(--tg-theme-bg-color);
}

.iRating .groupBtnBasket button {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color)
}

.iRating .groupBtnBasket button.active {
    background: var(--tg-theme-button-color);
}

.iRating .groupBtnBasket input {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color)
}

.iRating .shippingChoice {
    box-shadow: 0px 0px 40px 0px var(--tg-theme-secondary-bg-color);
}

.iCart .groupBtnBasket button {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color)
}

.iCart .groupBtnBasket input {
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color)
}

.iCart .shippingChoice {
    box-shadow: 0px 0px 40px 0px var(--tg-theme-secondary-bg-color);
}

.alert-icon svg path {
    fill: var(--tg-theme-secondary-bg-color);
}

.notification_cart, .notification_cart_time {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-hint-color);
}

.iOrder .variable {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.iOrder .gInput input, .iTable .gInput input {
    background: var(--tg-theme-secondary-bg-color);
    border: 1px solid var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color)
}

.iOrder .totalOrder, {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.iOrder .totalOrder>div span {
    color: var(--tg-theme-button-color);
}

.table_radio, .table_radio label {
    background: var(--tg-theme-secondary-bg-color);
}

.table_radio label span {
    color: var(--tg-theme-button-color);
}

.table_radio input[type=checkbox]:checked + label {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.iProfile .avatar img {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.iContact .avatar img {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.iContact #map {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.sectionTable {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.sectionTable>div span {
    color: var(--tg-theme-button-color);
}

.elem_order {
    box-shadow: 0px 0px 70px 2px var(--tg-theme-secondary-bg-color);
}

.elem_order .date span {
    background: var(--tg-theme-secondary-bg-color);
}

.elem_order .date .success {
    background: var(--tg-theme-button-color) !important;
    color: var(--tg-theme-button-text-color);
}

.preloader svg path {
    fill: var(--tg-theme-button-color);
}

.btnMore {
    background: var(--tg-theme-button-color) !important;
    color: var(--tg-theme-button-text-color);
}

body {
    scroll-behavior: instant;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    width: 0;
    font-family: 'Alegreya', serif;
}

a {
    text-decoration: none;
}

.pt40 {
    padding-top: 76px !important;
}

#phone {
    width: 100%;
    padding: 10px 10px 10px 10px;
}



#phone .navigation {
    position: fixed;
    min-width: 100%;
    z-index: 1000;
}

@keyframes background {
    50% {
        box-shadow: 0 -200px 100px -100px yellowgreen inset;
    }
}


#phone .main-gallery {
    height: 54px;
    padding: 10px;
    z-index: 10;
}
.hr {
    height: 0.5px;
    opacity: 0.13;
}
#phone .main-gallery a {
    display: block;
    border-radius: 25px;
    text-decoration: none;
    line-height: 34px;
    padding: 0 16px;
    cursor: pointer;
    transition: all ease 0.1s;
    margin: 0 3px;
    white-space: nowrap;
}

#phone .main-gallery a:first-child {
    margin: 0 3px 0 0 !important;
}

#phone .main-gallery a:last-child {
    margin: 0 0 0 3px !important;
}

#phone .main-gallery a.active {
    transition: all ease 0.1s;
}

#phone .main-gallery a.weekend {
    filter: brightness(80%);
}


.promo {
    margin-top: 20px;
    touch-action: none;
}

.promo_elem {
    display: inline-block;
    margin-right: 10px;
    width: 100px;

}

.promo_elem img {}

.circle img {
    border-radius: 100%;
    height: 100px;
}

.square img {
    height: 100px;
    width: 100px;
    border-radius: 3px;
}

.catalog_text {
    margin-top: 20px;
}
.cart_text {
    padding: 20px;
}
.container {
    padding-top: 25px;
    padding-bottom: 100px;
}

.container-np_nm {
    padding-top: 10px;
    padding-bottom: 10px;
}
.container h2 {
    font-size: 18px;
    margin-bottom: 16px;
    margin-top: 26px;

}
.description_category {
    font-size: 14px;
}

.cardProduct {
    border-radius: 5px;
    transition: all ease 0.2s;
}

.cardProductViews {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    transition: allease 0.2s;
    background: var(--tg-theme-bg-color);
    box-shadow: 0px 0px 30px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    margin-bottom: 20px;
}

.cardProduct .label {
    position: absolute;
    z-index: 10;
    display: inline-block;
    padding: 5px;
    border-radius: 6px;
    font-size: 10px;
    right: 10px;
    top: 10px;
}

.labels-product {
    position: absolute;
    z-index: 10;
    left: 10px;
    top: 10px;
    margin-right: 10px;
    color: #fff;
}


.label-left {
    display: inline-block;
    padding: 5px;
    border-radius: 6px;
    font-size: 10px;
    left: 10px;
    top: 10px;
    color: #fff;
}


.btnEnable {
    height: 40px;
    margin-top: 20px;
}

.btn-space {
    width: 100%;
}

.cardProduct.incart {
    transition: all ease 0.2s;

}

.click {
    /*-webkit-animation-name: cssAnimation;
	  -webkit-animation-duration: 1s;
	  -webkit-animation-iteration-count: 1;
	  -webkit-animation-timing-function: ease;
	  -webkit-animation-fill-mode: forwards;*/
}

@-webkit-keyframes cssAnimation {
    from {
        -webkit-transform: rotate(4deg) scale(1) skew(0deg) translate(0px);
    }
    to {
        -webkit-transform: rotate(0deg) scale(1) skew(0deg) translate(0px);
    }
}

.cardProduct:hover {}

.cardProduct picture {
    margin-bottom: 10px;
    width: 100%;
    height: 130px;
}

.col-6 .cardProduct picture img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;

}

.col-12 .cardProduct picture img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;

}


.cardProduct h3 {
    font-size: 14px;
    padding: 10px;
    margin: 0 !important;
}
.cardProduct p {
    font-size: 12px;
    padding: 0 10px;
    margin: 0 !important;
    overflow: hidden;
}
.cardProduct:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
}

.cardProduct button {
    margin: 10px;
    width: calc(100% - 20px);
    height: 34px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
}

.cardProduct button.btnInCart {
    filter: brightness(85%);
}




.cardProduct .groupBtn button {
    width: calc(30% - 20px);
    font-weight: bold;
}

.cardProduct .groupBtn input {
    width: calc(40% - 10px);
    filter: brightness(85%);
    border: none;
    box-shadow: none !important;
    text-align: center;
    font-size: 12px;
    line-height: 34px;
    padding: 0;
    border-radius: 8px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.product {
    margin-bottom: 40px;

}

.product picture img {
    max-width: 100%;
}



.product h3 {
    margin: 30px 10px 8px 10px;
    font-size: 20px;
    font-weight: bold;
}

.product .desc, .product .variable_description {
    padding: 0 10px;
    font-size: 14px;
}

.product .variable_description {
    padding: 5px 10px !important;
}

.product .variable {
    border-radius: 8px;
    margin: 0 10px;
    font-size: 14px;

}

.product .variable_title {
    font-size: 12px;
    padding: 0 18px;
    margin-top: 20px;
    filter: brightness(50%);
}

.form_radio_btn, .form_radio_btn label {
    width: 100%;
    display: block;
}

.form_radio_btn label {
    padding: 15px;
}

.form_radio_btn label span {
    float: right;
    font-size: 12px;
    font-weight: bold;
}

.form_radio_btn:first-child label {
    border-radius: 8px 8px 0 0;
}

.form_radio_btn:last-child label {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.form_radio_btn_one label {
    border-radius: 8px !important;
}

.form_radio_btn input {
    width: 100%;
}

.form_radio_btn input[type=radio], .form_radio_btn input[type=checkbox] {
    display: none;
}



.notification {
    margin: 10px;
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
}



.notification table {
    width: 100%;
}

.notification table td {
    padding: 7px 0;
}

.notification table tr:last-child td {
    border-bottom: none;
}


.text-bold {
    font-weight: bold;
}

.footer_sticky {
    z-index: 10;
    position: fixed;
    bottom: 0;
    width: 100%;

}

.quantity {
    padding: 8px 15px 0px 15px;
}



.quantity .btn-outline-secondary {
    height: 50px;
    width: 100%;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    transition: all ease 0.2s;
}

.activeBtn {
    transform: scale(0.98, 0.98);
    transition: all ease 0.2s;
    filter: brightness(70%);
}

.quantity .input-group .btn {
    height: 50px;
    width: 60px;
    font-weight: bold;
    font-size: 20px;
    transition: all ease 0.2s;
    border-radius: 8px !important;
}

.quantity .input-group input {
    text-align: center;
    background: none;
    border: none;

}

.iRating textarea {
    border-radius: 6px;
    width: calc(100% - 20px);
    margin: 10px;
    font-size: 14px;
    padding: 10px;
    outline: none;
    height: 100px;
    filter: brightness(80%);
}


.iRating .block {}
.iRating table {
    width: calc(100% - 10px);
    margin: 0 10px;
    max-width: calc(100% - 20px);

}


.iRating table td {
    vertical-align: top;
    padding: 10px 0;
}

.iRating table td.hr {
    padding: 0 !important;
}

.iRating table tr:last-child td.hr {
    background: none;
}

.iRating picture {
    width: 80px;
    height: 80px;

}
.iRating picture img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.iRating table td .name {
    font-size: 14px;
    white-space: nowrap;
}

.iRating table td .desc {
    font-size: 11px;
}

.iRating table td.price {
    font-size: 15px;
    text-align: right;
    font-weight: bold;
}


.iRating .groupBtnBasket {
    margin-top: 10px;
}

.iRating .groupBtnBasket button {
    width: 34px;
    display: inline-block;
    font-weight: bold;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    height: 34px;
    filter: brightness(90%);
}



.iRating .groupBtnBasket input {
    width: 30px;
    border: none;
    box-shadow: none !important;
    text-align: center;
    font-size: 12px;
    line-height: 34px;
    padding: 0;
    border-radius: 8px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.iRating .shippingChoice {
    margin: 20px;
    border-radius: 8px;
}

.iRating .variable_title {
    font-size: 12px;
    padding: 0 28px;
    margin-top: 20px;
    filter: brightness(50%);
}


.iCart {}
.iCart .block {}
.iCart table {
    width: calc(100% - 10px);
    margin: 0 10px;
    max-width: calc(100% - 20px);

}


.iCart table td {
    vertical-align: top;
    padding: 10px 0;
}

.iCart table td.hr {
    padding: 0 !important;
}

.iCart table tr:last-child td.hr {
    background: none;
}

.iCart picture {
    width: 80px;
    height: 80px;

}
.iCart picture img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.iCart table td .name {
    font-size: 14px;
    white-space: nowrap;
}

.iCart table td .desc {
    font-size: 11px;
}

.iCart table td.price {
    font-size: 15px;
    text-align: right;
    font-weight: bold;
}


.iCart .groupBtnBasket {
    margin-top: 10px;
}

.iCart .groupBtnBasket button {
    width: 34px;
    display: inline-block;
    font-weight: bold;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    height: 34px;
    filter: brightness(90%);
}

.iCart .groupBtnBasket input {
    width: 30px;
    border: none;
    box-shadow: none !important;
    text-align: center;
    font-size: 12px;
    line-height: 34px;
    padding: 0;
    border-radius: 8px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.iCart .shippingChoice {
    margin: 20px;
    border-radius: 8px;
}

.iCart .variable_title {
    font-size: 12px;
    padding: 0 28px;
    margin-top: 20px;
    filter: brightness(50%);
}


.alert-icon {
    text-align: center;
    margin-top: 80px;

}


.notification_cart, .notification_cart_time {
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    font-size: 12px;
}

.alert-icon span {
    font-size: 14px;
    display: block;
    margin-top: 20px;
}


.iOrder .variable {
    border-radius: 8px;
    font-size: 14px;
}



.iOrder .variable_title {
    font-size: 12px;
    margin-top: 20px;
    filter: brightness(50%);
}

.iOrder .gInput, .iTable .gInput {
    margin: 10px 0;

}

.iOrder .gInput input, .iTable .gInput input {
    font-size: 14px !important;
    padding: 15px 12px;
    border-radius: 8px;
    width: 100%;
    box-shadow: none;
}
.iOrder .gInput .form-control:active, .iTable .gInput .form-control:active {
    box-shadow: none;
    border: none;
    outline: none;
}

.iOrder .gInput .error, .iTable .gInput .error {
    color: #f52727;
    font-size: 12px;
    display: block;
    padding: 3px 10px;
}

.iOrder .validateError, .iTable .validateError {
    border: 1px solid #eb3838 !important;
    box-shadow: 0px 0px 3px 1px rgb(235, 38, 38, 0.78);
}

.iOrder .validateError::-webkit-input-placeholder,
.iOrder .validateError::-moz-placeholder,
.iOrder .validateError:-moz-placeholder,
.iOrder .validateError:-ms-input-placeholder,
.iTable .validateError::-webkit-input-placeholder,
.iTable .validateError::-moz-placeholder,
.iTable .validateError:-moz-placeholder,
.iTable .validateError:-ms-input-placeholder
{
    color: #d91e1e;
}

.iOrder .totalOrder, {
    border-radius: 8px;
    font-size: 14px;
}

.iOrder .totalOrder>div {
    padding: 0;
    padding: 10px;
}

.iOrder .totalOrder>div:last-child {
    padding: none !important;
}
.iOrder .totalOrder>div span {
    float: right;
    display: inline-block;
    font-weight: bold;
}

.iOrder .totalOrder>div.hr {
    padding: 0 !important;
}

.copyright {
    padding: 30px 0;
}

.copyright {
    text-align: center;
}

.cf_link {
    color: var(--tg-theme-link-color);
}


.iOrder {
    padding: 0px 10px 200px 10px;
}

.iTable {
    padding: 10px;
}

.choiceTime {
    margin-top: 20px;
}

.iTable .variable_title {
    font-size: 12px;
    padding: 0 18px;
    margin-top: 20px;
    filter: brightness(50%);
}

.tableDate {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.tableDesc {
    padding: 0 10px;
    font-size: 14px;
}

.table_radio, .table_radio label {
    width: 100%;
    display: inline-block;
    border-radius: 8px !important;
    text-align: center;
}

.table_radio label {
    padding: 15px;
}

.table_radio label span {
    float: right;
    font-size: 12px;
    font-weight: bold;
}

.table_radio:first-child label {
    border-radius: 8px 8px 0 0;
}

.table_radio:last-child label {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}


.table_radio input {
    width: 100%;
}

.table_radio input[type=radio], .table_radio input[type=checkbox] {
    display: none;
}

.table_radio input[type=checkbox]:disabled {
    opacity: 0.1;
}

.table_radio input[type=checkbox]:disabled + label {
    opacity: 0.1;
}



.iPolicy {
    padding: 0px 10px;
    font-size: 12px;
    text-align: justify;
}

.iPolicy h1 {
    font-size: 18px;
}

.policy {
    font-size: 12px;
    padding: 30px 0;
    opacity: 0.4;
}




input:active, input:focus {
    outline: none !important;
}
input::-moz-focus-inner {
    border: 0 !important;
}


.iProfile .avatar {
    margin: auto;
    max-width: 40%;
    margin-top: 20px;
    margin-bottom: 30px;
}

.iProfile .avatar img {
    border-radius: 50%;
    max-width: 100%;
}

.iContact {
    padding-bottom: 40px;
}

.iContact .avatar {
    margin: auto;
    max-width: 60%;
    margin-top: 20px;
}

.iContact .avatar img {
    border-radius: 50%;
    max-width: 100%;
}


.iContact .variable_title {
    font-size: 12px;
    padding: 0 18px;
    margin-top: 20px;
    filter: brightness(50%);
}

.iContact #map {
    margin: 10px;
    width: calc(100% - 20px);
    border-radius: 8px;
}

.ymaps-2-1-79-gototaxi {
    opacity: 0.1;
}

.iContact .text-addres {
    margin: 10px;
    font-size: 14px;
    font-weight: bold;
}


.sectionTable {
    border-radius: 8px;
    margin: 10px;
    font-size: 14px;
}

.sectionTable>div {
    padding: 0;
    padding: 10px;
}

.sectionTable>div:last-child {
    padding: none !important;
}
.sectionTable>div span {
    float: right;
    display: inline-block;
    font-weight: bold;
}

.sectionTable>div.hr {
    padding: 0 !important;
}

.iOrders {
    padding-bottom: 10px;
}

.elem_order {
    margin: 10px;
    border-radius: 8px;
    padding: 10px;
}

.elem_order .date {
    padding: 0 0 5px 0;
    font-weight: bold;
}

.elem_order .date span {
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    font-size: 12px;
    margin-left: 10px;
    font-weight: normal;
}



.elem_order .shipping {
    font-size: 12px;
}

.products_order {
    font-size: 12px;
}

.products_order .product_elem {
    padding: 5px 0;
}

.products_order .product_elem .property {
    opacity: 0.5;

}

.products_order .product_elem span {
    float: right;
}

.btn-repeat {
    font-size: 12px;
    font-weight: bold;
    padding: 5px 0;
}






.btnMore {
    border-radius: 8px;
    text-align: center;
    padding: 10px 0;
    margin: 0 10px;
    margin-top: 10px;
}
.app-bar {
    bottom: 0;
    justify-content: center;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    z-index: 1000;
}

.app-bar,.app-bar-nav {
    align-items: center;
    display: flex;
    width: 100%
}

.app-bar-nav {
    background-color: var(--tg-theme-section-bg-color);
    box-shadow: 0 -1px 0 var(--tg-theme-section-separator-color);
    height: 64px;
    border: 1px solid #1c1f24;
    justify-content: space-between;
    max-width: 460px;
    padding: 4px;
    pointer-events: all
}

.app-bar-item {
    align-items: center;
    border-radius: 16px;
    color: #8b8e93;
    display: flex;
    flex: 1 1;
    flex-direction: column;
    font-size: 10px;
    height: 56px;
    justify-content: flex-start;
    padding: 5px;
    position: relative
}

.app-bar-item-notification {
    background-color: #ff3b30;
    border-radius: 50%;
    height: 10px;
    left: 50%;
    margin-left: 10px;
    position: absolute;
    top: 6px;
    width: 10px
}

.app-bar-item-image {
    align-items: center;
    display: flex;
    height: 28px;
    justify-content: center;
    margin-bottom: 5px;
    width: 28px
}

.app-bar-item-image img {
    display: block;
    height: auto;
    max-width: 100%
}

.app-bar-item-image .icon {
    color: #4e4f50
}

.app-bar-item-image picture {
    display: block;
    height: auto;
    max-height: 28px;
    max-width: 28px;
    width: 100%
}

.app-bar-item-image picture img {
    display: block;
    height: auto;
    max-width: 100%
}

.app-bar-item:hover,.app-bar-item:hover .icon {
    color: var(--tg-theme-text-color);
}

.app-bar-item.is-active,.app-bar-item.router-link-active {
    background-color: var(--tg-theme-header-bg-color);
    color: var(--tg-theme-text-color);
}

.app-bar-item.is-active .icon svg,.app-bar-item.router-link-active .icon svg {
    color: var(--tg-theme-text-color);
}

#ajax_loader {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2299dd, #44aaff, #2299dd);
    background-size: 200% 100%;
    animation: loadingProgress 1.5s infinite linear;
}

@keyframes loadingProgress {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* DESIGN */
/* USER */

.design_user_container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: var(--tg-theme-secondary-bg-color);
    align-items: center;
    padding: 10px;
}

.design_user_container_avatar {
    display: flex;
    justify-content: center;
}

.design_user_container_avatar_img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.design_user_container_info {
    display: flex;
    flex-direction: column;
}

.design_user_container_info_nickname, .design_user_container_info_balance {
    display: flex;
    align-items: center;
    font-size: var(--size);
    font-family: var(--family);
}

.design_user_container_info_nickname {
    color: var(--tg-theme-text-color);
}

.design_user_container_info_balance {
    color: var(--tg-theme-hint-color);
}

.design_user_container_info_balance .material-symbols-outlined {
    font-size: 16px;
}

.design_user_list {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: var(--tg-theme-secondary-bg-color);
    margin: 10px 0;
}

.design_user_list_name {
    display: flex;
    font-size: var(--size);
    font-family: var(--family);
    color: #2299dd;
    font-weight: bold;
    padding: 10px;
}

.design_user_list_link {
    display: flex;
    border-bottom: 1px solid var(--tg-theme-bg-color);
    padding: 10px;
    text-decoration: none;
    align-items: center;
    font-size: var(--size);
    font-family: var(--family);
    color: var(--tg-theme-hint-color);
}

.design_user_list_link:last-child {
    border-bottom: none;
}

.design_user_list_link .material-symbols-outlined {
    margin-right: 10px;
}

/* MARKET */

.design_slideshow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    box-sizing: border-box;
}

.design_slideshow_img {
    width: 100%;
    height: 350px;
}

.dots {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 70px;
    left: 0;
    right: 0;
    position: absolute;
}

.dots .material-symbols-outlined {
    font-size: 16px;
    color: var(--tg-theme-hint-color);
}

.dots .material-symbols-outlined.active {
    color: var(--tg-theme-text-color);
}

.market_container {
    display: flex;
    background-color: var(--tg-theme-bg-color);
    flex-direction: column;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 1;
    margin-top: -60px;
    box-shadow: 0 -5px 5px var(--tg-theme-secondary-bg-color);
}

.market_container_time, .market_container_name, .market_container_balance, .market_container_description {
    display: flex;
    align-items: center;
    font-size: var(--size);
    font-family: var(--family);
    padding: 10px 0;
}

.market_container_time {
    color: var(--tg-theme-hint-color);
}

.market_container_name {
    color: var(--tg-theme-text-color);
    font-size: 16px;
    font-weight: bold;
}

.market_container .material-symbols-outlined {
    font-size: 16px;
}

.market_container_description {
    font-size: calc(var(--size) - 2px);
}

/* CHANNEL */

.channel_poster {
    display: flex;
    background-color: var(--tg-theme-bg-color);
    background-image: url("../images/J551KjW2EvAo.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 50px;
    filter: blur(1.5px);
    position: relative;
    z-index: -1;
}

.channel_information {
    display: flex;
    flex-direction: column;
    background-color: var(--tg-theme-section-bg-color);
    box-shadow: 0px 0px 30px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
}

.channel_information_div {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 10px;
}

.channel_information_div_avatar {
    display: flex;
    justify-content: center;
}

.channel_information_div_avatar_img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin-top: -50px;
    background-color: var(--tg-theme-secondary-bg-color);
    padding: 2px;
}

.channel_information_div_details {
    display: flex;
    flex-direction: column;
}

.channel_information_div_details_info {
    display: flex;
    flex-wrap: wrap;
}

.channel_information_div_details_name, .channel_information_div_details_info_subscribe, .channel_information_div_details_info_hashtag {
    display: flex;
    font-size: var(--size);
    font-family: var(--family);
    align-items: center;
}

.channel_information_div_details_name {
    font-weight: bold;
    color: var(--tg-theme-text-color);
}

.channel_information_div_details_info_subscribe {
    color: var(--tg-theme-link-color);
}

.channel_information_div_details_info_hashtag {
    color: var(--tg-theme-hint-color);
}

.channel_information_div_details .material-symbols-outlined {
    font-size: 16px;
    margin-right: 5px;
}

.channel_information_div_details_info_hashtag {
    padding-left: 10px;
}

.channel_information_description {
    display: flex;
    font-size: var(--size);
    font-family: var(--family);
    color: var(--tg-theme-text-color);
    flex-direction: column;
    padding: 10px;
}

.channel_information_description_btn {
    display: flex;
    text-decoration: none;
    height: 30px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: var(--size);
    font-family: var(--family);
    background-color: var(--tg-theme-link-color);
    color: #fff;
    font-weight: bold;
}

.channel_information_nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.channel_information_nav_link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    font-size: var(--size);
    font-family: var(--family);
    color: var(--tg-theme-text-color);
    font-weight: bold;
}

.channel_information_nav_link .material-symbols-outlined {
    margin-right: 10px;
}

.channel_information_nav_link.active {
    border-bottom: 1px solid var(--tg-theme-link-color);
}

.channel_pub {
    display: flex;
    flex-direction: column;
    background-color: var(--tg-theme-section-bg-color);
    margin: 10px 0;
    box-shadow: 0px 0px 30px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
}

.channel_pub_top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 10px;
}

.channel_pub_top_avatar {
    display: flex;
    justify-content: center;
}

.channel_pub_top_avatar_img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.channel_pub_top_info {
    display: flex;
    flex-direction: column;
}

.channel_pub_top_info_name, .channel_pub_top_info_time {
    display: flex;
    align-items: center;
    font-size: var(--size);
    font-family: var(--family);
}

.channel_pub_top_info_name {
    color: var(--tg-theme-text-color);
}

.channel_pub_top_info_time {
    color: var(--tg-theme-hint-color);
}

.channel_pub_top_dev {
    display: flex;
    justify-content: flex-end;
}

.channel_pub_top_dev_icon {
    display: flex;
    align-items: center;
    color: var(--tg-theme-hint-color);
    margin: 0 10px;
}

.channel_pub_top_dev_icon .material-symbols-outlined {
    font-size: 20px;
}

.channel_pub_desc {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    font-size: var(--size);
    font-family: var(--family);
    color: var(--tg-theme-text-color);
}

.channel_pub_bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-top: 1px solid var(--tg-theme-bg-color);
    padding: 10px 20px;
    align-items: center;
}

.channel_pub_bottom_comm {
    display: flex;
    text-decoration: none;
    font-size: var(--size);
    font-family: var(--family);
    color: var(--tg-theme-hint-color);
    align-items: center;
}

.channel_pub_bottom_comm .material-symbols-outlined {
    margin-right: 10px;
}

.channel_pub_bottom_icon {
    display: flex;
    justify-content: flex-end;
}

.channel_pub_bottom_icon_link {
    display: flex;
    text-decoration: none;
    font-size: var(--size);
    font-family: var(--family);
    color: var(--tg-theme-hint-color);
    align-items: center;
}

.channel_pub_bottom_icon_link .material-symbols-outlined {
    margin: 0 10px;
}

.tf4r {
    background: var(--tg-theme-section-bg-color);
}
.FbwO {
    padding-top: 20px;
}
.gymF {
    align-items: center;
    display: flex;
    flex-direction: column;
}
.U4Ek {
    align-items: center;
    border-radius: 50%;
    display: flex;
    justify-content: center;
}
.U4Ek circle {
    fill: #2196F3;
    stroke: #1976D2;
    stroke-width: 2;
}

.U4Ek text {
    fill: white;
    font-family: Arial;
    font-weight: bold;
}
.nvi9 {
    color: var(--tg-theme-text-color);
    font-family: Roboto,system-ui,sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
}
.PD6w {
    margin-bottom: 3px;
    margin-top: 10px;
}
.Vowz {
    color: var(--tg-theme-subtitle-text-color);
    font-family: Roboto,system-ui,sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    margin-bottom: 20px;
}
.PR5g {
    padding-block: 0;
    padding-inline: 85px;
    text-align: center;
}
.ydmx {
    isolation: isolate;
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 20px 20px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
}
.ihLs {
    padding-inline-start: 20px;
}
.DPId {
    display: flex;
}
.DPId .hUbu {
    padding-bottom: 14px;
    padding-top: 12px;
}
.DPId .V_4v {
    border-radius: 10px;
    flex-basis: 100%;
}
.DPId .CJ9C {
    color: var(--tg-theme-text-color);
    font-family: Roboto,system-ui,sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
}
.DPId .Rulr {
    color: var(--tg-theme-subtitle-text-color);
    font-family: Roboto,system-ui,sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}
.DPId .hUbu {
    padding-bottom: 14px;
    padding-top: 12px;
}
.DPId .V_4v {
    border-radius: 10px;
    flex-basis: 100%;
}
.DPId .CJ9C {
    color: var(--tg-theme-text-color);
    font-family: Roboto,system-ui,sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
}
.LySH.rAGF .HUpe {
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.DN_1 {
    background: var(--tg-theme-secondary-bg-color);
    height: 12px;
}
.HUpe {
    border: 0;
    margin: 0;
}
.LySH.rAGF {
    background: var(--tg-theme-section-bg-color);
}
.ld55 {
    position: relative;
}
.yPhA {
    display: flex;
    height: 50px;
    position: relative;
    width: 100%;
}
.BDWM {
    align-items: center;
    display: flex;
    flex: 1;
    height: 100%;
    justify-content: center;
    padding-block: 0;
    padding-inline: 16px;
    position: relative;
}
.r2DG {
    cursor: pointer;
    position: relative;
}
.DLQx {
    height: 100%;
}
.P13Q {
    border-radius: inherit;
}
.ecfX {
    color: var(--tg-theme-accent-text-color);
    position: relative;
}
.gtBI {
    border-radius: inherit;
    height: 100%;
    inset-inline-start: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}
.yaBp {
    align-items: center;
    color: var(--tg-theme-subtitle-text-color);
    display: flex;
    font-family: Roboto,system-ui,sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    height: 100%;
    line-height: 20px;
    transition: color .3s cubic-bezier(.4,0,.2,1);
}
.oFtB {
    color: var(--tg-theme-subtitle-text-color);
    font-family: -Roboto,system-ui,sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
}
.dqUJ {
    align-items: center;
    display: flex;
    height: 160px;
    justify-content: center;
    width: 100%;
}
.hCZ1 {
    background: var(--tg-theme-section-bg-color);
    padding-block: 10px 10px;
    padding-inline: 20px;
}
.Rfm7 {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}
.KbDJ {
    --skeleton-height: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
}
.cpHh {
    font-family: Roboto,system-ui,sans-serif;
}
.eqZC {
    color: var(--tg-theme-section-header-text-color);
}
.tizz {
    display: block;
}
.k6nV {
    color: var(--tg-theme-accent-text-color);
}
.r2DG {
    cursor: pointer;
    position: relative;
}
.dAgC {
    align-items: center;
    display: flex;
}
.P13Q {
    border-radius: inherit;
}
.Bcb3 {
    --cell-avatar-inline-spacing: 14px 11px;
    --cell-text-inline-spacing: 20px 11px;
    --cell-radio-inline-spacing: 24px 16px;
    --cell-checkbox-inline-spacing: 28px 25px;
    --cell-icon-inline-spacing: 21px 16px;
    --cell-square-icon-inline-spacing: 20px 16px;
}
.aErX {
    margin-inline: var(--cell-icon-inline-spacing);
}
.t1CP+.f5GT {
    margin-inline-start: 0;
}
.YrPC {
    padding-inline-end: 20px;
}
.Wv9y {
    margin-inline-start: 20px;
}
.f5GT {
    align-items: center;
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    margin-inline-start: 16px;
    max-width: 100%;
    min-width: 0;
    position: relative;
}
.jOCs.NXXw {
    align-items: flex-start;
}
.TYgZ {
    gap: 2px;
    min-height: 50px;
    padding-block: 12px;
}
.jOCs {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    margin-inline: var(--cell-text-inline-spacing);
    max-width: 100%;
    min-width: 0;
}
.kzP3 {
    align-items: center;
    display: flex;
    gap: 6px;
    max-width: 100%;
}
.PmUA {
    font-weight: 400;
}
.IqPa {
    --skeleton-height: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}
.cpHh {
    font-family: Roboto,system-ui,sans-serif;
}
.SqDw {
    color: var(--tg-theme-accent-text-color);
}
.ecfX {
    color: var(--tg-theme-accent-text-color);
    position: relative;
}
.qQ7G {
    border-radius: inherit;
    opacity: 0;
    transition: opacity .4s ease-in;
}
.vKsn {
    opacity: 1;
}
.j5SK {
    height: 90%;
    width: 90%;
}
button {
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 0;
    outline: none;
    padding: 0;
}

*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 5vw);
    grid-gap: 1.5rem;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__item--0 {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;

    /** Alternative Syntax **/
    /* grid-column: 1 / span 2;  */
    /* grid-row: 1 / span 2; */
}

.gallery__item--1 {
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;

    /** Alternative Syntax **/
    /* grid-column: 3 / span 2;  */
    /* grid-row: 1 / span 2; */
}

.gallery__item--2 {
    grid-column-start: 5;
    grid-column-end: 9;
    grid-row-start: 1;
    grid-row-end: 6;

    /** Alternative Syntax **/
    /* grid-column: 5 / span 4;
  grid-row: 1 / span 5; */
}

.gallery__item--3 {
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 6;

    /** Alternative Syntax **/
    /* grid-column: 1 / span 4;  */
    /* grid-row: 3 / span 3; */
}

.gallery__item--4 {
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row-start: 6;
    grid-row-end: 9;

    /** Alternative Syntax **/
    /* grid-column: 1 / span 4; */
    /* grid-row: 6 / span 3; */
}

.gallery__item--5 {
    grid-column-start: 5;
    grid-column-end: 9;
    grid-row-start: 6;
    grid-row-end: 9;

    /** Alternative Syntax **/
    /* grid-column: 5 / span 4; */
    /* grid-row: 6 / span 3; */
}
.floating-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #2196F3;
    /* Цвет кнопки */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    font-size: 36px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}
.floating-button:hover {
    background-color: #1976D2;
}
/* Контейнер для галереи */
.gallery-wrapper {
    overflow-x: auto;
    /* Горизонтальная прокрутка */
    max-width: 600px;
    margin: 20px auto;
    position: relative;
    padding-bottom: 10px;
}

/* Галерея изображений */
.gallery {
    display: flex;
    scroll-snap-type: x mandatory;
    /* Поддержка snap для прокрутки */
}

/* Контейнер для изображения */
.image-container {
    min-width: 100%;
    /* Каждое изображение будет занимать всю ширину контейнера */
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    scroll-snap-align: start;
}
/* Контейнер для изображения */
.image-container-min {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
    scroll-snap-align: start;
    animation: slideIn 0.4s ease;
}
.image-container-app {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-right: 10px;
    scroll-snap-align: start;
    animation: slideIn 0.4s ease;
}

/* Изображение */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопка удаления */
.delete-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    /* Убедитесь, что кнопка всегда выше всех других элементов */
}

/* Анимация для текста (плавное появление и исчезновение) */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
}
.preview-container img {
    margin: 5px;
    width: 100px;
    height: 100px;
    object-fit: cover;
}
/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточка товара */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Изображение товара */
.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Детали товара */
.product-details {
    padding: 10px;
    text-align: center;
}

/* Название товара */
.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0;
    color: #333;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Цена */
.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f;
    margin: 5px 0;
}

.product-price .old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: #999;
    margin-left: 5px;
}

/* Рейтинг */
.product-rating {
    font-size: 14px;
    color: #ffa726;
    margin-top: 5px;
}

.flash-message {
    position: fixed;
    bottom: 70px;
    /* Начальная позиция вне экрана */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    animation: slidesUp 4s forwards;
    text-align: center;
}

/* Успех */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Ошибка */
.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Предупреждение */
.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Информация */
.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Анимация */
@keyframes slidesUp {
    0% {
        bottom: 100px;
        opacity: 0;
        visibility: visible;
    }
    10% {
        bottom: 80px;
        opacity: 1;
    }
    90% {
        bottom: 70px;
        opacity: 1;
    }
    100% {
        bottom: 70px;
        opacity: 0;
        visibility: hidden;
    }
}

.red-button {
    background-color: red !important;
    border-color: red !important;
}
.slider img {
    width: 100%;
    height: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    width: 300px;
}

/* Основной стиль карточки товара */
.product-card {
    width: 100%;
    max-width: 800px;
    background-color: var(--tg-theme-bg-color);
    /* Фон карточки с учетом темы */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.product-image {
    width: 100%;
    /* На всю ширину родительского контейнера */
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    /* Отступ снизу для других элементов */
}

.image-container picture img {
    position: absolute;
    /* Абсолютное позиционирование */
    width: 100%;
    /* Изображение будет растягиваться по ширине контейнера */
    height: auto;
    /* Высота пропорциональна ширине */
    top: 50%;
    /* Сдвигаем изображение по вертикали */
    transform: translateY(-50%);
    /* Центрируем изображение по высоте */
}


/* Информация о товаре */
.product-info {
    padding: 20px;
    margin: -37px 0 0 0;
}

.product-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--tg-theme-link-color);
    /* Цвет заголовка с учетом темы */
}
.product-name {
    color: var(--tg-theme-text-color, #000);
    text-align: left;
    font-size: var(--semi-paragraph-16-font-size, 18px);
    line-height: var(--semi-paragraph-16-line-height, 125%);
    font-weight: var(--semi-paragraph-16-font-weight, 600);
}
.product-description {
    color: var(--tg-theme-hint-color, #8e8e93);
    text-align: left;
    font-size: var(--regular-paragarph-14-font-size, 16px);
    line-height: var(--regular-paragarph-14-line-height, 125%);
    font-weight: var(--regular-paragarph-14-font-weight, 400);
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.product-category {
    font-size: 14px;
    color: var(--tg-theme-placeholder-color);
    /* Цвет категории с учетом темы */
    margin-bottom: 10px;
}

/* Цена */
.product-price {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}
.original-price {
    text-decoration: line-through;
    color: #ff4d4d;
}
.discounted-price {
    color: #4caf50;
}


/* Акция */
.product-discount {
    font-size: 14px;
    color: var(--tg-theme-accent-color);
    /* Цвет акции с учетом темы */
    margin-bottom: 10px;
}

/* Продавец */
.seller-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--tg-theme-secondary-text-color);
    /* Цвет текста продавца с учетом темы */
}

/* Кнопка "Купить" */
.buy-button {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    font-weight: bold;
    background-color: var(--tg-theme-button-color);
    /* Цвет кнопки с учетом темы */
    color: var(--tg-theme-button-text-color);
    /* Цвет текста кнопки */
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: var(--tg-theme-button-hover-color);
    /* Цвет кнопки при наведении */
    cursor: pointer;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.modal:target {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.close:hover {
    color: red;
}
.modal-dialog {
    position: relative;
    background: var(--tg-theme-section-bg-color, #ffffff);
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    pointer-events: all;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #333333);
}
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    color: var(--tg-theme-hint-color, #6c757d);
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--tg-theme-section-separator-color, #e9ecef);
    color: var(--tg-theme-text-color, #333333);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0 24px;
}
.rejection-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

.rejection-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rejection-info p {
    margin: 0;
    font-size: 14px;
    color: var(--tg-theme-text-color, #333333);
    line-height: 1.4;
}

.rejection-info strong {
    color: #ff9800;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333333);
}

.rejection-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--tg-theme-section-separator-color, #e9ecef);
    border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    color: var(--tg-theme-text-color, #333333);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.4;
}

.rejection-textarea:focus {
    outline: none;
    border-color: var(--tg-theme-button-color, #6f42c1);
    background: var(--tg-theme-bg-color, #ffffff);
    box-shadow: 0 0 0 3px rgba(108, 66, 193, 0.1);
}

.rejection-textarea::placeholder {
    color: var(--tg-theme-hint-color, #6c757d);
}

.form-hint {
    font-size: 12px;
    color: var(--tg-theme-hint-color, #6c757d);
    margin-top: 6px;
}

.quick-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-reason {
    padding: 12px 16px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
    border-radius: 10px;
    font-size: 14px;
    color: var(--tg-theme-text-color, #333333);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-reason:hover {
    border-color: var(--tg-theme-button-color, #6f42c1);
    background: rgba(108, 66, 193, 0.05);
    transform: translateY(-1px);
}

.quick-reason:active {
    transform: translateY(0);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-top: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-secondary {
    background: var(--tg-theme-section-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #333333);
    border: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
}

.btn-secondary:hover {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--danger-color, #dc3545);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--danger-dark, #c82333);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-primary:disabled {
    background: var(--tg-theme-hint-color, #6c757d);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Адаптивность */
@media (max-width: 480px) {
    .modal-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        flex: none;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .modal-dialog {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .rejection-textarea {
        background: #3d3d3d;
        border-color: #404040;
    }
    
    .quick-reason {
        background: #3d3d3d;
        border-color: #404040;
    }
    
    .modal-footer {
        background: #252525;
        border-color: #404040;
    }
    
    .btn-secondary {
        background: #3d3d3d;
        border-color: #404040;
        color: #ffffff;
    }
}

/* Кнопки "вперёд" и "назад" */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.5);
    color: black;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.image-container {
    position: relative;
}

.delete-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
}
.price-overlay-i {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    text-align: right;
}
.price-overlay-views {
    position: absolute;
    bottom: 27px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    text-align: right;
}
.price-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    text-align: right;
    font-size: 15px;
}
.price-overlay .original-price {
    /*text-decoration: line-through;*/
    color: #ff4d4d;
    font-weight: bold;
    display: block;
}

.price-overlay .discounted-price {
    color: #4caf50;
    font-weight: bold;
    display: block;
}

.price-overlay .current-price {
    color: #fff;
    font-weight: bold;
}
.modal-content-wrapper {
    position: relative;
    display: inline-block;
}

.price-overlay-modal {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    text-align: right;
}

.price-overlay-modal .original-price {
    text-decoration: line-through;
    color: #ff4d4d;
    font-weight: bold;
    display: block;
}

.price-overlay-modal .discounted-price {
    color: #4caf50;
    font-weight: bold;
    display: block;
}

.price-overlay-modal .current-price {
    color: #fff;
    font-weight: bold;
}

.seller-info {
    font-size: 14px;
    margin-bottom: 10px;
}

.review-rating {
    display: flex;
    gap: 5px;
    cursor: pointer;
}
.product-date {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-date .date {
    font-weight: bold;
    color: var(--tg-theme-text-color);
}


.hashtag {
    display: inline-block;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.hashtag:hover {
    background-color: #b0b0b0;
}
.fixed-buttons {
    gap: 0;
    /* Расстояние между кнопками */
    position: fixed;
    /* Фиксированное позиционирование */
    bottom: 58px;
    /* Отступ от нижней части экрана */
    left: 50%;
    transform: translateX(-50%);
    /* Чтобы кнопки были поверх других элементов */
}

.fixed-buttons .btn {
    height: 50px;
    /* Устанавливаем одинаковую высоту для кнопок */
    display: flex;
    align-items: center;
    /* Центрируем иконки и текст по вертикали */
    justify-content: center;
    /* Центрируем текст по горизонтали */
    min-width: 150px;
    /* Отступы по бокам */
}

.fixed-buttons .btn i {
    margin-right: 8px;
    /* Отступ между иконкой и текстом */
}

.btn-heart {
    background-color: #007bff;
    /* Синий цвет */
    border-color: #007bff;
}

.btn-heart:hover {
    background-color: #0056b3;
    /* Темнее при наведении */
    border-color: #0056b3;
}
.discount-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #ff4d4d;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}
/* Для основного изображения */
.discount-label-views {
    position: absolute;
    top: 10px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ff4d4d;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

/* Для модального окна */
.discount-label-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4d;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid;
    border-radius: 4px;
}
input:disabled {
    color: var(--tg-theme-text-color);
    background-color: var(--tg-theme-secondary-bg-color);
}
#previewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#previewContainer img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid;
    border-radius: 4px;
    object-fit: cover;
}
.filters-form {
    display: flex;
    gap: 10px;
    /* Отступ между селектами */
    align-items: center;
    margin-top: 10px;
}

.filters-form select {
    background: var(--tg-theme-bg-color);
    border: none;
    font-size: 15px;
    color: var(--tg-theme-text-color);
    cursor: pointer;
    appearance: none;
    padding: 5px;
}

.filters-form select:focus {
    outline: none;
    /* Убирает рамку при фокусе */
}
.fixed-buttons-container {
    position: fixed;
    bottom: 58px;
    left: 50%;
    /* Центрирование по горизонтали */
    transform: translateX(-50%);
    /* Точное центрирование */
    max-width: 460px;
    /* Максимальная ширина */
    width: calc(100% - 32px);
    /* Отступы по краям на мобильных */
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
}

.buy-now {
    flex: 1;
    text-align: center;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-text-color);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
}

.add-to-cart {
    flex: 1;
    text-align: center;
    background: white;
    color: #FF6B00;
    border: 1px solid #FF6B00;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
}

/* Эффекты при наведении */
.buy-now:hover {
    background: #E65A00;
}
.add-to-cart:hover {
    background: #FFF3E5;
}

/* Адаптация для экранов меньше 480px */
@media (max-width: 480px) {
    .fixed-buttons-container {
        padding: 8px 12px;
    }
    .buy-now, .add-to-cart {
        padding: 12px;
        font-size: 14px;
    }
}
.emoji-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    /* Чтобы эмодзи не смещали текст */
    vertical-align: middle;
    /* Выравнивание по центру строки */
    image-rendering: crisp-edges;
    /* Улучшение качества рендеринга */
}
.discount-editor {
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider {
    width: 100%;
    height: 8px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.slider:hover::-webkit-slider-thumb {
    background: #0056b3;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--tg-theme-text-color);
    font-size: 0.9em;
}

.final-price {
    margin-top: 15px;
    font-size: 1.2em;
    color: var(--tg-theme-text-color);
    font-weight: bold;
}
/* Добавим стили для группировки */
.price-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-group label {
    min-width: 120px;
}

.price-input:focus {
    border-color: #0056b3;
    outline: none;
}

#originalPrice {
    border-color: #28a745;
    /* Зеленый для базовой цены */
}

#currentPrice {
    border-color: #ffc107;
    /* Желтый для текущей цены */
}

.users-list {
    border-right: 1px solid #dee2e6;
    height: 100%;
    overflow-y: auto;
}

.messages-area {
    height: calc(100% - 150px);
    overflow-y: auto;
}

.message-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.message-bubble {
    max-width: 80%;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
}
.bg-white {
    --bs-bg-opacity: 0;
    background: var(--tg-theme-bg-color);
    box-shadow: 0px 0px 30px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
}
.chat-container {
    height: calc(100% - 12px);
    position: relative;
    border-radius: 0.5rem;
}
.list-group-m {
    margin-top: 4px;
    position: relative;
    padding: .5rem 1rem;
    color: var(--tg-theme-text-color);
    background-color: var(--tg-theme-secondary-bg-color);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 5px;
}
.badges {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    position: relative;
    gap: 3px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-self: stretch;
}
.item-badge {
    border-radius: 6px;
    padding: 5px 6px 5px 6px;
    gap: 0;
    align-items: center;
    justify-content: center;
}
.fix-card-bottom {
    left: 50%;
    transform: translateX(-50%);
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 8px;
    padding-bottom: var(--tg-safe-area-inset-bottom, 12px) !important;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: fixed;
    bottom: 58px;
    max-width: 460px;
    width: calc(100% - 32px);
}
.big-button {
    background: var(--tg-theme-button-color, #268be3);
    color: var(--tg-theme-button-text-color, #fff);
    border-radius: 12px;
    padding: 18px 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    max-height: 50px;
    position: relative;
    font-size: var(--bold-uppercase-14-font-size, 14px);
    line-height: var(--bold-uppercase-14-line-height, 100%);
    letter-spacing: var(--bold-uppercase-14-letter-spacing, .02em);
    font-weight: var(--bold-uppercase-14-font-weight, 700);
    text-transform: uppercase;
    border: none;
}
.big-button-f {
    background: #FF6B00;
    color: var(--tg-theme-button-text-color, #fff);
    border-radius: 12px;
    padding: 18px 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
    max-height: 50px;
    position: relative;
    font-size: var(--bold-uppercase-14-font-size, 14px);
    line-height: var(--bold-uppercase-14-line-height, 100%);
    letter-spacing: var(--bold-uppercase-14-letter-spacing, .02em);
    font-weight: var(--bold-uppercase-14-font-weight, 700);
    text-transform: uppercase;
    border: none;
}
.p-0 {
    padding: 0 !important;
}
.flex-column {
    flex-direction: column !important;
}
.d-flex {
    display: flex !important;
}
@media (min-width: 768px) {
    .col-md-8 {
        flex: 0 0 auto;
        width: 100%;
    }
}
.chat-header {
    position: fixed;
    width: 440px;
    background: var(--tg-theme-secondary-bg-color);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #0000001a;
    top: 0;
}
.avatar-chat {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.user-info {
    flex-grow: 1;
}
.user-name {
    color: var(--tg-theme-text-color);
    font-weight: 500;
    font-size: 15px;
}
.user-status {
    color: var(--tg-theme-hint-color);
    font-size: 13px;
    margin-top: 2px;
}
.messages {
    flex-grow: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 50px;
    height: calc(90vh - 100px);
    scrollbar-color: #2b5278 transparent;
    scrollbar-width: thin;
    box-shadow: 0px -35px 28px 4px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    flex-direction: column-reverse;
    /* Инвертируем направление */
}
.messages::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.messages::-webkit-scrollbar-thumb {
    background: #2b5278;
    border-radius: 3px;
}

.messages::-webkit-scrollbar-track {
    background: transparent;
}
.incoming {
    align-self: flex-start;
    border-radius: 0 8px 8px 8px;
}
.outgoing {
    align-self: flex-end;
    border-radius: 8px 0 8px 8px;
    margin-left: auto;
}
.message-time {
    font-size: 12px;
    color: #7f91a4;
    float: right;
    margin-left: 10px;
    margin-top: 3px;
    letter-spacing: -0.5px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 7px;
    position: relative;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    color: #d4d5d7;
    transform: scaleY(-1);
    /* Возвращаем нормальную ориентацию текста */
    margin-top: 3.5px;
}

.input-area {
    padding-bottom: env(safe-area-inset-bottom);
    bottom: 60px;
    position: fixed;
    width: 100%;
    max-width: 460px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #0000001a;
    background: var(--tg-theme-section-bg-color);
    border-bottom: 1px solid var(--tg-theme-bg-color);
}
.attach-button, .voice-button, .send-button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    color: #55677d;
    transition: 0.2s;
}
.message-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: #202e3c;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
}
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.messages-inner {
    transform: scaleY(-1);
    /* Переворачиваем контейнер */
}
@media (max-height: 860px) {
    .messages {
        height: calc(84vh - 100px);
    }
}
@media (max-height: 768px) {
    .messages {
        height: calc(84vh - 100px);
    }
}
@media (max-height: 480px) {
    .messages {
        height: calc(79vh - 100px);
    }
}
.bgprimary {
    --bs-bg-opacity: 1;
    background-color: var(--tg-theme-bg-color);
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    margin-right: auto;
    margin-left: auto;
}
/* === TOP BAR === */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 16px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.notification-item {
    position: relative;
}

.notification-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.notification-link:hover {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    transform: translateY(-1px);
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.notification-link:hover .notification-icon {
    background: var(--tg-theme-button-color, #6f42c1);
    transform: scale(1.05);
}

.notification-link:hover .mail-icon,
.notification-link:hover .bell-icon {
    color: white;
}

.mail-icon, .bell-icon {
    color: var(--tg-theme-hint-color, #6c757d);
    transition: all 0.3s ease;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--tg-theme-text-color, #333333);
    transition: all 0.3s ease;
}

.notification-link:hover .notification-text {
    color: var(--tg-theme-button-color, #6f42c1);
}

/* Бейдж уведомлений */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff3b30, #ff6251);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--tg-theme-section-bg-color, #ffffff);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
    animation: slideIn 0.3s ease;
}

/* Анимация пульсации для новых уведомлений */
.notification-badge.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .top-bar {
        padding: 10px 12px;
    }
    
    .top-bar-content {
        gap: 16px;
    }
    
    .notification-link {
        padding: 6px 10px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
    }
    
    .notification-text {
        display: none; /* Скрываем текст на мобильных */
    }
    
    .mail-icon, .bell-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        gap: 12px;
    }
    
    .notification-link {
        padding: 6px 8px;
    }
    
    .notification-icon {
        width: 32px;
        height: 32px;
    }
    
    .notification-badge {
        top: -4px;
        right: -4px;
        font-size: 10px;
        min-width: 16px;
        padding: 1px 4px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .notification-link:hover {
        background: #3d3d3d;
    }
    
    .notification-icon {
        background: #3d3d3d;
    }
    
    .notification-badge {
        border-color: #2d2d2d;
    }
}

/* Плавное появление */
.top-bar {
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.balance-icon {
    width: 24px;
    height: 24px;
    background: var(--tg-theme-button-color);
    -webkit-mask: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.0%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%20220%20220%22%3E%3Cg%20transform%3D%22translate(0%20220)%20scale(0.1%20-0.1)%22%3E%3Cpath%20d%3D%22M1190%201814%20c-58%20-30%20-217%20-112%20-353%20-181%20-137%20-68%20-247%20-127%20-244-129%203%20-3%20142%2028%20309%2070%20166%2041%20347%2085%20401%2097%20109%2026%20106%2022%2082%20116%20-16%2061-35%2083%20-69%2083%20-12%200%20-68%20-25%20-126%20-56z%22%2F%3E%3Cpath%20d%3D%22M1475%201674%20c-33%20-8%20-85%20-21%20-115%20-29%20-62%20-16%20-376%20-92%20-517%20-126%20-51-12%20-93%20-23%20-93%20-25%200%20-2%20194%20-4%20430%20-4%20l430%200%200%2084%20c0%2076%20-2%2086%20-22%20100%20-27%2019%20-35%2019%20-113%200z%22%2F%3E%3Cpath%20d%3D%22M388%201434%20c-58%20-31%20-58%20-30%20-58%20-546%200%20-455%201%20-474%2020%20-506%2011%20-18%2032%20-37%2046%20-42%2015%20-6%20279%20-10%20680%20-10%20724%200%20696%20-2%20728%2064%2020%2043%2024%20304%204%20324%20-8%208%20-54%2012%20-139%2012%20-137%200%20-165%206%20-198%2041%20-18%2020%20-21%2035%20-21%20119%200%2094%201%2097%2031%20126%20l30%2029%20150%203%20c177%204%20163%20-14%20157%20189%20-3%20149%20-13%20178%20-66%20202%20-16%208%20-234%2011%20-680%2011%20-562%20-1%20-661%20-3%20-684%20-16z%22%2F%3E%3Cpath%20d%3D%22M1525%201008%20c-38%20-20%20-45%20-40%20-45%20-123%200%20-120%200%20-120%20206%20-120%20136%200%20166%203%20174%2015%205%208%2010%2059%2010%20112%200%20129%202%20128%20-185%20128%20-82%200%20-148%20-5%20-160%20-12z%20m96%20-78%20c22%20-12%2026%20-59%207%20-78%20-7%20-7%20-21%20-12%20-33%20-12%20-29%200%20-45%2019%20-45%2052%200%2039%2034%2057%2071%2038z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') no-repeat center;
    mask: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%221.0%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%20220%20220%22%3E%3Cg%20transform%3D%22translate(0%20220)%20scale(0.1%20-0.1)%22%3E%3Cpath%20d%3D%22M1190%201814%20c-58%20-30%20-217%20-112%20-353%20-181%20-137%20-68%20-247%20-127%20-244-129%203%20-3%20142%2028%20309%2070%20166%2041%20347%2085%20401%2097%20109%2026%20106%2022%2082%20116%20-16%2061-35%2083%20-69%2083%20-12%200%20-68%20-25%20-126%20-56z%22%2F%3E%3Cpath%20d%3D%22M1475%201674%20c-33%20-8%20-85%20-21%20-115%20-29%20-62%20-16%20-376%20-92%20-517%20-126%20-51-12%20-93%20-23%20-93%20-25%200%20-2%20194%20-4%20430%20-4%20l430%200%200%2084%20c0%2076%20-2%2086%20-22%20100%20-27%2019%20-35%2019%20-113%200z%22%2F%3E%3Cpath%20d%3D%22M388%201434%20c-58%20-31%20-58%20-30%20-58%20-546%200%20-455%201%20-474%2020%20-506%2011%20-18%2032%20-37%2046%20-42%2015%20-6%20279%20-10%20680%20-10%20724%200%20696%20-2%20728%2064%2020%2043%2024%20304%204%20324%20-8%208%20-54%2012%20-139%2012%20-137%200%20-165%206%20-198%2041%20-18%2020%20-21%2035%20-21%20119%200%2094%201%2097%2031%20126%20l30%2029%20150%203%20c177%204%20163%20-14%20157%20189%20-3%20149%20-13%20178%20-66%20202%20-16%208%20-234%2011%20-680%2011%20-562%20-1%20-661%20-3%20-684%20-16z%22%2F%3E%3Cpath%20d%3D%22M1525%201008%20c-38%20-20%20-45%20-40%20-45%20-123%200%20-120%200%20-120%20206%20-120%20136%200%20166%203%20174%2015%205%208%2010%2059%2010%20112%200%20129%202%20128%20-185%20128%20-82%200%20-148%20-5%20-160%20-12z%20m96%20-78%20c22%20-12%2026%20-59%207%20-78%20-7%20-7%20-21%20-12%20-33%20-12%20-29%200%20-45%2019%20-45%2052%200%2039%2034%2057%2071%2038z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') no-repeat center;
}

.balance-amount {
    font-size: 1.2em;
    font-weight: 500;
}
.balance-card {
    transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.balance-card:active {
    transform: scale(0.98);
    background: color-mix(
    in oklab,
    var(--tg-theme-section-bg-color),
    var(--tg-theme-button-color) 5%
    );
}
.balance-card.premium {
    background: linear-gradient(
    135deg,
    var(--tg-theme-button-color),
    var(--tg-theme-accent-text-color)
    );
    color: white;
}

/* Общие стили для ползунка */
.sliders {
    width: 100%;
    height: 8px;
    outline: none;
    webkit-appearance: none;
    background: transparent;
}

/* Стили для трека (дорожки) */
.sliders:-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.sliders:-moz-range-track {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

/* Стили для бегунка (thumb) */
.sliders:-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    margin-top: -7px;
    cursor: pointer;
}

.sliders:-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Для Firefox - цвет заполненной части */
.sliders:-moz-range-progress {
    background: #4CAF50;
    height: 6px;
    border-radius: 3px;
}

/* Для WebKit - цвет заполненной части */
.sliders:-webkit-slider-runnable-track {
    background: linear-gradient(to right, #4CAF50 0%, #4CAF50 var(--fill-percent), #ddd var(--fill-percent), #ddd 100%);
}
.btn {
    background: var(--tg-theme-button-color) !important;
    color: var(--tg-theme-button-text-color);
}
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: var(--tg-theme-secondary-bg-color);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.loading-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin-bottom: 2rem;
    position: relative;
    animation: textScale 2s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(52, 152, 219, 0.2);
    border-top-color: var(--tg-theme-hint-color);
    border-radius: 50%;
    position: relative;
    animation: spin 1.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.spinner-track {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-right-color: var(--tg-theme-header-bg-color);
    border-radius: 50%;
    animation: spinReverse 2s linear infinite;
    clip-path: inset(0 50% 0 0);
}

.progress-dots {
    display: flex;
    margin-top: 2rem;
    gap: 0.5rem;
}

.progress-dots::after {
    content: '...';
    color: var(--text-color);
    animation: dots 1.5s infinite steps(4);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(720deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes textScale {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes dots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
}

/* Эффект градиентного свечения */
.spinner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg,
    var(--tg-theme-section-bg-color),
    var(--tg-theme-secondary-bg-color),
    var(--tg-theme-section-bg-color));
    z-index: -1;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.3;
}

/* Адаптивность */
@media (max-width: 768px) {
    .loading-text {
        font-size: 1.8rem;
    }

    .spinner-container {
        width: 60px;
        height: 60px;
    }
}

nav {
    display: flex;
    justify-content: space-around;
    /*align-items: center;*/
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Main Content */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.category-card {
    background: var(--tg-theme-section-bg-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.api-item {
    border-left: 4px solid #3498db;
    padding: 1rem;
    margin: 1rem 0;
    background: var(--tg-theme-secondary-bg-color);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h2 {
    color: var(--tg-theme-section-header-text-color);
    margin-bottom: 1rem;
}

.btn:hover {
    background: #2980b9;
}

/* Code Blocks */
pre {
    background: var(--tg-theme-section-bg-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    position: relative;
    margin: 1rem 0 !important;
}
.api-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 10px;
    border-radius: 0 0 8px 8px;
}

.api-details.active {
    max-height: 1000px;
    /* Подберите значение под ваш контент */
}

.toggle-details {
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
}

.toggle-details::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s;
}

.toggle-details.active::after {
    transform: rotate(180deg);
}
.api-detail-page {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.endpoint-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
}

.http-method {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 1rem;
}

.get-method {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.response-block {
    position: relative;
    margin: 1rem 0;
}

.response-title {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.response-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.response-tab {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.response-tab.active {
    color: white;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.parameter-table th,
.parameter-table td {
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

.back-button:hover {
    text-decoration: underline;
}
/* Кнопка копирования */
.copy-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.copy-button:hover {
    background: rgba(255,255,255,0.2);
}
.copied-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copied-notice.show {
    opacity: 1;
}
.settings-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 10px 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.setting-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.setting-label {
    margin-left: 15px;
    font-size: 16px;
}

/* Стили для авторизации */
.auth-only {
    opacity: 0.6;
    pointer-events: none;
}
#loader {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: opacity 0.3s;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: #4285f4;
    transition: width 0.4s ease;
}

#error-message {
    display: none;
    padding: 20px;
    background: #ffebee;
    color: #c62828;
    text-align: center;
    font-family: Arial, sans-serif;
}

iframe {
    width: 100%;
    height: 100vh;
    border: none;
    display: block;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}
.token-display {
    font-family: monospace;
    letter-spacing: 1px;
    background-color: #f8f9fa;
}

.setting-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-color: #86b7fe;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.5em;
}
.disabled-section {
    position: relative;
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(70%);
    transition: all 0.3s ease;
}

.disabled-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: not-allowed;
}

.disabled-section .form-check-input,
.disabled-section button,
.disabled-section select {
    pointer-events: none;
}
.card-header {
    background: linear-gradient(135deg, var(--tg-theme-button-color) 0%, var(--tg-theme-accent-text-color) 100%);
    color: var(--tg-theme-text-color);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-body {
    padding: 24px;
}

.app-icon-preview {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.app-icon-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 117, 252, 0.3);
}

.form-label {
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tg-theme-button-color) 0%, var(--tg-theme-accent-text-color) 100%);
    border: none;
}

.btn-outline-secondary {
    border: 2px solid #e9ecef;
}
.comments-section {
    margin-top: 30px;
}

.comments-section h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.comments-list .comment {
    padding: 10px 0;
}

.comment b {
    color: var(--tg-theme-link-color);
}

.comment small {
    color: var(--tg-theme-hint-color);
    margin-left: 10px;
}

.comment p {
    margin: 5px 0 0;
    color: var(--tg-theme-text-color);
}

.comments-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.comments-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.comments-section button[type="submit"] {
    align-self: flex-end;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.comments-section button[type="submit"]:hover {
    background: #45A049;
}
/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 20px 20px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    padding: 20px;
    border-radius: 12px;
    color: var(--tg-theme-text-color);
}
.avatar-wrapper {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-theme-button-color), var(--tg-theme-accent-text-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    overflow: hidden;
    border: 2px solid var(--tg-theme-section-bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trust-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 8px;
}
.profile-userinfo .profile-name {
    font-size: 1.8rem;
    margin: 0;
}
.profile-username {
    font-size: 1rem;
    color: var(--tg-theme-hint-color);
    margin-bottom: 5px;
}
.profile-verification {
    font-size: 1rem;
    color: var(--tg-theme-accent-text-color);
    margin-bottom: 5px;
}

/* Balance Card */
.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 20px 20px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.balance-label {
    font-size: 0.9rem;
    color: var(--tg-theme-subtitle-text-color);
}
.btn-recharge {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.btn-recharge:hover {
    opacity: 0.8;
}
.rating-card {
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 20px 20px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--tg-theme-section-header-text-color);
}
.star {
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg fill="%237d7d7d" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568L24 9.75l-6 5.848L19.335 24 12 19.771 4.665 24 6 15.598 0 9.75l8.332-1.595z"/></svg>') no-repeat center;
}
.star.filled {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23a183d2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 .587l3.668 7.568L24 9.75l-6 5.848L19.335 24 12 19.771 4.665 24 6 15.598 0 9.75l8.332-1.595z"/></svg>');
}
.avg-score {
    color: var(--tg-theme-text-color);
    font-weight: bold;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}
.fill {
    height: 100%;
    background: var(--tg-theme-button-color);
}
.rating-level {
    color: var(--tg-theme-subtitle-text-color);
    font-size: 0.9rem;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 20px 0;
}
.stat {
    flex: 1;
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 20px 20px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* выравнивание по центру */
    text-align: center;

}
.stat-number {
    order: 1;
    color: var(--tg-theme-text-color);
    font-size: 1.4rem;
    font-weight: bold;
}
.stat-label {
    color: var(--tg-theme-hint-color);
    font-size: 0.9rem;
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.social-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 12px;
    color: var(--tg-theme-button-text-color);
    background: var(--tg-theme-button-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
.social-btn:hover {
    opacity: 0.8;
}
.achievements-container {
    max-width: 800px;
    margin: 0 auto;
}

.achievements-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tg-theme-section-separator-color, #2a2a2a);
}

.achievements-header h1 {
    color: var(--tg-theme-section-header-text-color);
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, var(--shadow-alpha));
}

.achievements-header .progress {
    color: var(--tg-theme-subtitle-text-color);
    font-size: 1.1rem;
    height: auto;
}

.achievement-card {
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, calc(var(--shadow-alpha) + 0.1));
    position: relative;
    overflow: hidden;
    border: 1px solid var(--tg-theme-section-separator-color, #2a2a2a);
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, calc(var(--shadow-alpha) + 0.2));
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 6px;
    background: var(--tg-theme-accent-text-color);
    transition: width 0.3s ease;
}

.achievement-card.tg-theme-button-color::before {
    background: var(--tg-theme-button-color);
    width: 8px;
}

.achievement-card.not-tg-theme-button-color::before {
    background: var(--not-tg-theme-button-color);
}

.achievement-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--tg-theme-text-color);
    padding-left: 12px;
}

.achievement-title::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.tg-theme-button-color .achievement-title::before {
    background: var(--tg-theme-button-color) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') center no-repeat;
}

.not-tg-theme-button-color .achievement-title::before {
    background: var(--not-tg-theme-button-color) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') center no-repeat;
}

.achievement-description {
    color: var(--tg-theme-subtitle-text-color);
    line-height: 1.6;
    padding-left: 48px;
    font-size: 1rem;
}

.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--tg-theme-section-separator-color, #333);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--tg-theme-hint-color);
}

.progress-bar {
    height: 6px;
    width: 70%;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--tg-theme-link-color);
    border-radius: 3px;
    width: 50%;
}

.reward {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(165, 131, 218, 0.15);
    color: var(--tg-theme-accent-text-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .achievement-card {
        padding: 18px 15px;
    }

    .achievement-title {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }

    .achievement-description {
        padding-left: 38px;
    }

    .progress-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .progress-bar {
        width: 100%;
    }
    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1;
        min-width: 100px;
        text-align: center;
        margin: 5px;
        padding: 8px 5px;
    }
}
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--tg-theme-section-separator-color);
    padding-bottom: 10px;
}

.tab {
    padding: 10px 20px;
    font-size: 13px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    background: transparent;
    color: var(--tg-theme-subtitle-text-color);
    border: none;
    outline: none;
}

.tab.active {
    background: rgba(165, 131, 218, 0.2);
    color: var(--tg-theme-accent-text-color);
    box-shadow: 0 0 10px rgba(165, 131, 218, 0.3);
}

.tab:hover:not(.active) {
    background: rgba(165, 131, 218, 0.1);
}
.reviews-wall {
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 0px 30px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    color: var(--tg-theme-text-color);
}
.rw-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--tg-theme-section-header-text-color);
}

/* Form */
.rw-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}
.rw-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    background: var(--tg-theme-secondary-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    border-radius: 8px;
    color: var(--tg-theme-text-color);
    resize: vertical;
}
.rw-submit {
    align-self: flex-end;
    padding: 8px 16px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s;
}
.rw-submit:hover {
    opacity: .8;
}



.review-item {
    background-color: var(--tg-theme-section-bg-color);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.review-user {
    font-weight: 500;
    color: var(--tg-theme-accent-text-color);
    font-size: 16px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars .stars {
    color: #f5c518;
    font-size: 16px;
}

.review-stars .inactive {
    color: #444;
}

.review-meta {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 6px;
}

.review-text {
    font-size: 15px;
    line-height: 1.4;
    color: var(--tg-theme-text-color);
}
.review-votes {
    margin-top: 12px;
    display: flex;
    gap: 15px;
}
/* Голосование */
.review-votes {
    margin-top: 8px;
    text-align: right;
}

.rw-vote-form .vote-btn {
    background: var(--tg-theme-secondary-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    color: var(--tg-theme-accent-text-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.rw-vote-form .vote-btn:hover {
    background: var(--tg-theme-section-bg-color);
}

.rw-vote-form .vote-btn.active {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border-color: var(--tg-theme-button-color);
}

.like-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.dislike-btn.active {
    background: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
}

.icon {
    font-size: 12px;
}

.count {
    font-size: 15px;
    color: var(--tg-theme-text-color);
}
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.rating input {
    display: none;
}

.star {
    cursor: pointer;
    width: 25px;
    height: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" fill="gray"/></svg>');
    transition: all 0.2s ease;
}

.star:hover,
.star:hover ~ .star,
.rating input:checked ~ .star {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" fill="gold"/></svg>');
    transform: scale(1.1);
}

.rating input:checked + .star {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" fill="orange"/></svg>');
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.payment-option {
    background-color: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    border: 1px solid var(--tg-theme-section-separator-color);
}

.payment-option:hover {
    transform: translateY(-2px);
    background-color: #222122;
}

.payment-option:active {
    transform: translateY(0);
}

.payment-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 16px;
    flex-shrink: 0;
}

.cryptobot .payment-icon {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.tonkeeper .payment-icon {
    background: linear-gradient(135deg, #0088cc, #00aaff);
}

.yoomoney .payment-icon {
    background: linear-gradient(135deg, #ff5722, #ff7043);
}
.payment-info {
    flex-grow: 1;
}
.payment-info h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--tg-theme-text-color);
}

.payment-info p {
    font-size: 14px;
    color: var(--tg-theme-subtitle-text-color);
}

.payment-arrow {
    color: var(--tg-theme-hint-color);
    margin-left: 10px;
}
.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: var(--tg-theme-subtitle-text-color);
    padding: 0 10px;
}
.header {
    padding: 20px 0;
    text-align: center;
    margin-bottom: 8px;
}

.header h1 {
    color: var(--tg-theme-text-color);
    font-size: 22px;
    font-weight: 600;
}

.header p {
    color: var(--tg-theme-subtitle-text-color);
    font-size: 14px;
    margin-top: 4px;
}
.icon {
    width: 24px;
    height: 24px;
}
.icon path {
    fill: white;
}
.card {
    background-color: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--tg-theme-section-separator-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--tg-theme-section-header-text-color);
    font-size: 18px;
    font-weight: 600;
}

.card-title i {
    font-size: 20px;
}

.selected-method {
    display: flex;
    align-items: center;
    background: rgba(165, 131, 218, 0.15);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(165, 131, 218, 0.3);
}

.method-info h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 4px;
}

.method-info p {
    font-size: 14px;
    color: var(--tg-theme-subtitle-text-color);
}

.change-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--tg-theme-link-color);
    color: var(--tg-theme-link-color);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-btn:hover {
    background: rgba(161, 131, 210, 0.1);
}

.amount-section {
    margin-bottom: 25px;
}

.amount-label {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--tg-theme-subtitle-text-color);
}

.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input {
    background: var(--tg-theme-secondary-bg-color);
    font-size: 18px;
    color: var(--tg-theme-text-color);
    transition: border-color 0.3s ease;
}

.amount-input:focus {
    outline: none;
    border-color: var(--tg-theme-link-color);
}

.currency-symbol {
    position: absolute;
    left: 20px;
    font-size: 18px;
    color: var(--tg-theme-text-color);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.amount-btn {
    background: var(--tg-theme-secondary-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    border-radius: 12px;
    padding: 10px;
    font-size: 15px;
    color: var(--tg-theme-text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background: rgba(165, 131, 218, 0.1);
    border-color: var(--tg-theme-link-color);
}

.amount-btn.active {
    background: rgba(165, 131, 218, 0.2);
    border-color: var(--tg-theme-link-color);
    color: var(--tg-theme-accent-text-color);
}

.fee-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--tg-theme-section-separator-color);
    font-size: 14px;
    color: var(--tg-theme-subtitle-text-color);
}

.fee-value {
    color: var(--tg-theme-text-color);
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--tg-theme-section-separator-color);
}

.total-label {
    font-size: 16px;
    color: var(--tg-theme-text-color);
}

.total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--tg-theme-accent-text-color);
}

.action-btn {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 14px;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(165, 131, 218, 0.3);
}

.action-btn:hover {
    background: #9a70d7;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}
.timer-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.timer-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
    var(--tg-theme-link-color) 0%,
    var(--tg-theme-link-color) var(--progress),
    var(--tg-theme-secondary-bg-color) var(--progress),
    var(--tg-theme-secondary-bg-color) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(161, 131, 210, 0.3);
}

.timer-inner {
    width: 90%;
    height: 90%;
    background: var(--tg-theme-section-bg-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-text {
    font-size: 14px;
    color: var(--tg-theme-subtitle-text-color);
    margin-bottom: 5px;
}

.timer-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--tg-theme-accent-text-color);
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.timer-unit {
    font-size: 14px;
    color: var(--tg-theme-subtitle-text-color);
}
.payment-op-info {
    background: rgba(165, 131, 218, 0.1);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(165, 131, 218, 0.2);
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--tg-theme-subtitle-text-color);
    font-size: 15px;
}

.info-value {
    font-weight: 500;
    font-size: 15px;
}

.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    border-radius: 14px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-icon {
    font-size: 20px;
    color: #4CAF50;
}

.status-text {
    font-size: 16px;
    font-weight: 500;
    color: #4CAF50;
}

.btn-payment {
    flex: 1;
    padding: 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-cancel {
    background: rgba(238, 104, 111, 0.15);
    color: var(--tg-theme-destructive-text-color);
    border: 1px solid rgba(238, 104, 111, 0.3);
}

.btn-cancel:hover {
    background: rgba(238, 104, 111, 0.25);
    transform: translateY(-2px);
}

.instructions {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--tg-theme-section-separator-color);
    text-align: left;
}

.instructions-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--tg-theme-section-header-text-color);
    font-size: 17px;
}

.instructions-list {
    padding-left: 20px;
    font-size: 14px;
    color: var(--tg-theme-subtitle-text-color);
}

.instructions-list li {
    margin-bottom: 10px;
}

.pulse {
    animation: pulse 2s infinite;
}
.wallet-min {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px;
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0px 20px 20px 5px var(--tg-theme-secondary-bg-color);
    border-bottom: 2px solid var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    margin-bottom: 12px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 20px;
    margin: 20px 0;
}

/* Left block: label + amount */
.wallet-min__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.wallet-min__label {
    font-size: 13px;
    color: var(--tg-theme-subtitle-text-color);
}
.wallet-min__amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right block: ton info + actions */
.wallet-min__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* TON small block */
.ton-mini {
    text-align: right;
    min-width: 130px;
}
.ton-mini .rate {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
}
.ton-mini .ton {
    font-size: 14px;
    color: var(--tg-theme-accent-text-color);
    font-weight: 600;
    margin-top: 4px;
}

/* Actions: simple buttons */
.wallet-min__actions {
    display: flex;
    gap: 8px;
}
.wallet-min__btn {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 84px;
    border: 1px solid rgba(255,255,255,0.03);
}
.wallet-min__btn--primary {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}
.wallet-min__btn--ghost {
    background: transparent;
    color: var(--tg-theme-accent-text-color);
    border-color: rgba(255,255,255,0.03);
}

/* tiny address line */
.wallet-min__address {
    margin-top: 6px;
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width:520px) {
    .wallet-min {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }
    .wallet-min__right {
        width: 100%;
        justify-content: space-between;
    }
    .ton-mini {
        text-align: left;
        min-width: auto;
    }
}
/* Контейнер для кнопки закрытия */
.card-close-container {
    position: absolute;
    top: 15px;
    bottom: 55px;
    right: 15px;
    z-index: 10;
}

/* Стили для кнопки закрытия */
.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
    transform: scale(1.1);
}

.close-btn:active {
    transform: scale(0.95);
}

.close-btn i {
    font-size: 16px;
}

/* Делаем карточку относительно позиционированной для абсолютного позиционирования кнопки */
.card {
    position: relative;
    /* остальные ваши стили card */
}

/* Альтернативный вариант с эмодзи вместо иконки Font Awesome */
.close-btn-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    color: var(--tg-theme-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
}

.close-btn-simple:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}
.iframe-header-minimal {
    height: 35px;
    background: var(--tg-theme-header-bg-color);
    color: var(--tg-theme-section-header-text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 13px;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.responsive-iframe {
    padding-top: 20px;
    overflow: hidden;
}

.user-badge, .balance-badge {
    opacity: 0.9;
}

.close-btn-minimal {
    background: none;
    border: none;
    color: var(--tg-theme-text-color);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: background 0.3s;
}

.close-btn-minimal:hover {
    background: rgba(255,255,255,0.1);
}

/* === УНИВЕРСАЛЬНЫЙ ДИЗАЙН ПОЧТЫ ДЛЯ СВЕТЛОЙ И ТЕМНОЙ ТЕМ === */

.mail-app {
    min-height: 100vh;
    background: var(--tg-theme-bg-color);
    padding: 0;
}

/* Хедер */
.mail-header {
    background: var(--tg-theme-section-bg-color);
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--tg-theme-section-separator-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.mail-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.mail-title {
    color: var(--tg-theme-text-color);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.mail-subtitle {
    color: var(--tg-theme-hint-color);
    font-size: 14px;
    margin: 4px 0 0 0;
    opacity: 0.8;
}

.mail-actions {
    display: flex;
    gap: 8px;
}

.mail-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.mail-action-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Поиск */
.mail-search {
    padding: 0 16px 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--tg-theme-section-separator-color);
}

.search-icon {
    color: var(--tg-theme-hint-color);
    margin-right: 12px;
    font-size: 16px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--tg-theme-text-color);
    font-size: 16px;
    padding: 0;
}

.search-input::placeholder {
    color: var(--tg-theme-hint-color);
}

.search-input:focus {
    outline: none;
}

.search-actions {
    margin-left: 12px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--tg-theme-hint-color);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--tg-theme-secondary-bg-color);
}

/* Список писем */
.mail-inbox {
    padding: 0 8px;
}

/* Пустой инбокс */
.empty-inbox {
    text-align: center;
    padding: 60px 20px;
    color: var(--tg-theme-hint-color);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-inbox h3 {
    color: var(--tg-theme-text-color);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.empty-inbox p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 24px;
    opacity: 0.8;
}

.compose-btn {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.compose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(161, 131, 218, 0.3);
}

/* Список диалогов */
.conversation-list {
    padding: 8px 0;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin: 0 8px 8px;
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--tg-theme-section-separator-color);
    position: relative;
    overflow: hidden;
}

.conversation-item:hover {
    transform: translateY(-2px);
    border-color: var(--tg-theme-button-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.conversation-item:active {
    transform: translateY(0);
}

/* Аватар */
.conversation-avatar {
    position: relative;
    margin-right: 16px;
    flex-shrink: 0;
}

.avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-theme-button-color), var(--tg-theme-accent-text-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 20px;
    overflow: hidden;
    border: 2px solid var(--tg-theme-section-bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid var(--tg-theme-section-bg-color);
    animation: pulse 2s infinite;
}

/* Контент диалога */
.conversation-content {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.contact-name {
    color: var(--tg-theme-text-color);
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    color: var(--tg-theme-hint-color);
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 8px;
    font-weight: 500;
}

.message-preview {
    color: var(--tg-theme-hint-color);
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conversation-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attachment-indicator {
    color: var(--tg-theme-hint-color);
    font-size: 14px;
    opacity: 0.7;
}

.message-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}

.message-count {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Стрелка */
.conversation-arrow {
    color: var(--tg-theme-hint-color);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.conversation-item:hover .conversation-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: var(--tg-theme-button-color);
}

/* Фаб-кнопка */
.fab-compose {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.1);
}

.fab-compose:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Анимации */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.conversation-item {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.conversation-item:nth-child(1) {
    animation-delay: 0.05s;
}
.conversation-item:nth-child(2) {
    animation-delay: 0.1s;
}
.conversation-item:nth-child(3) {
    animation-delay: 0.15s;
}
.conversation-item:nth-child(4) {
    animation-delay: 0.2s;
}
.conversation-item:nth-child(5) {
    animation-delay: 0.25s;
}

/* Улучшения для светлой темы */
@media (prefers-color-scheme: light) {
    .conversation-item {
        border-color: #e5e5e5;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }

    .conversation-item:hover {
        border-color: var(--tg-theme-button-color);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .search-box {
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border-color: #e5e5e5;
    }

    .mail-header {
        border-bottom-color: #e5e5e5;
    }

    .avatar-img {
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
}

/* Улучшения для темной темы */
@media (prefers-color-scheme: dark) {
    .conversation-item {
        border-color: #333;
    }

    .conversation-item:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    .search-box {
        box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    }
}

/* Адаптивность */
@media (max-width: 480px) {
    .mail-header {
        padding: 16px 12px 12px;
    }

    .mail-title {
        font-size: 24px;
    }

    .conversation-item {
        padding: 14px;
        margin: 0 4px 8px;
        border-radius: 14px;
    }

    .avatar-img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        font-size: 18px;
    }

    .fab-compose {
        bottom: 70px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .contact-name {
        font-size: 15px;
    }

    .message-preview {
        font-size: 13px;
    }
}

/* Улучшенная читаемость текста */
.conversation-content {
    color: var(--tg-theme-text-color);
}

.message-preview {
    color: var(--tg-theme-hint-color);
    opacity: 0.9;
}

/* Явные границы для разделителей */
.conversation-item {
    border: 1px solid;
    border-color: var(--tg-theme-section-separator-color);
}
/* === ПОЛНОСТЬЮ НОВЫЙ CSS ДЛЯ ЧАТА === */

/* Сбрасываем все старые стили */
.chat-top,
.messages-area,
.input-panel,
.message-row,
.message {
    all: initial;
}

/* Базовые стили */
.chat-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--tg-theme-section-bg-color);
    border-bottom: 1px solid var(--tg-theme-section-separator-color);
    z-index: 1000;
}

.user-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    height: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tg-theme-button-color), var(--tg-theme-accent-text-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-right: 12px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 2px;
}

.user-status {
    font-size: 12px;
}

.online {
    color: #4CAF50;
}

.offline {
    color: var(--tg-theme-hint-color);
}

/* Область сообщений */
.messages-area {
    position: fixed;
    top: 60px;
    bottom: 140px;
    left: 0;
    right: 0;
    background: var(--tg-theme-bg-color);
    overflow: hidden;
}

.messages-container {
    height: 100%;
    overflow-y: auto;
    padding: 20px 16px;
    max-width: 460px;
    margin: 0 auto;
}

/* Состояние без сообщений */
.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: var(--tg-theme-hint-color);
}

.no-messages-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-messages-text {
    font-size: 18px;
    color: var(--tg-theme-text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.no-messages-desc {
    font-size: 14px;
    opacity: 0.8;
}

/* Строка сообщения */
.message-row {
    display: flex;
    margin-bottom: 16px;
    width: 100%;
}

.message-row.incoming {
    justify-content: flex-start;
}

.message-row.outgoing {
    justify-content: flex-end;
}

/* Сообщение */
.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    animation: messageAppear 0.3s ease-out;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Входящие сообщения */
.message-row.incoming .message {
    background: var(--tg-theme-secondary-bg-color);
    border-bottom-left-radius: 6px;
    color: var(--tg-theme-text-color);
}

/* Исходящие сообщения */
.message-row.outgoing .message {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border-bottom-right-radius: 6px;
}

/* Непрочитанные входящие сообщения */
.message-row.incoming .message.unread {
    background: rgba(161, 131, 218, 0.15);
    border-left: 3px solid var(--tg-theme-button-color);
}

/* Текст сообщения */
.message-text {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

/* Время сообщения */
.message-time {
    font-size: 11px;
    opacity: 0.8;
    text-align: right;
}

/* Разделитель непрочитанных */
.unread-separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--tg-theme-hint-color);
}

.unread-line {
    flex: 1;
    height: 1px;
    background: var(--tg-theme-section-separator-color);
}

.unread-text {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--tg-theme-bg-color);
}

/* Панель ввода */
.input-panel {
    position: fixed;
    bottom: 64px;
    left: 0;
    right: 0;
    background: var(--tg-theme-section-bg-color);
    border-top: 1px solid var(--tg-theme-section-separator-color);
    padding: 16px;
    z-index: 999;
    max-width: 460px;
    margin: 0 auto;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-input {
    flex: 1;
    border: none;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--tg-theme-text-color);
    font-size: 15px;
    min-height: 44px;
}

.text-input:focus {
    outline: none;
    background: var(--tg-theme-bg-color);
}

.text-input::placeholder {
    color: var(--tg-theme-hint-color);
}

.send-button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.send-button:hover {
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 480px) {
    .chat-top {
        height: 56px;
    }

    .user-info {
        padding: 8px 12px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .messages-area {
        top: 56px;
        bottom: 136px;
    }

    .messages-container {
        padding: 16px 12px;
    }

    .input-panel {
        padding: 12px;
        bottom: 58px;
    }

    .message {
        max-width: 80%;
        padding: 10px 14px;
    }

    .message-text {
        font-size: 14px;
    }
}

/* Прокрутка */
.messages-container::-webkit-scrollbar {
    width: 4px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: var(--tg-theme-hint-color);
    border-radius: 2px;
    opacity: 0.3;
}

/* Убедимся, что нет конфликтов с app-bar */
.app-bar {
    z-index: 998;
}

/* === КОМПАКТНЫЙ СТИЛЬ ДЛЯ ВЕРИФИКАЦИИ === */

.compact-verification {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin: 8px 0;
    border-top: 1px solid var(--tg-theme-section-separator-color);
}

.verification-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.verification-badge {
    font-size: 14px;
    flex-shrink: 0;
}

.verification-message {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    line-height: 1.3;
}

.verification-actions {
    margin-left: 12px;
    flex-shrink: 0;
}

.verify-btn,
.report-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.verify-btn {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.report-btn {
    background: transparent;
    color: var(--tg-theme-hint-color);
    border: 1px solid var(--tg-theme-section-separator-color);
}

.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(161, 131, 218, 0.3);
}

.report-btn:hover {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
}

/* Модальное окно для жалобы */
.report-modal {
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    animation: modalAppear 0.3s ease;
}

.report-modal select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--tg-theme-section-separator-color);
    border-radius: 8px;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    font-size: 14px;
    transition: all 0.2s ease;
}

.report-modal select:focus {
    outline: none;
    border-color: var(--tg-theme-button-color);
    background: var(--tg-theme-bg-color);
}

/* Адаптивность */
@media (max-width: 480px) {
    .compact-verification {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .verification-actions {
        margin-left: 0;
        align-self: flex-end;
    }

    .verification-message {
        font-size: 11px;
    }
}

/* Улучшения для светлой темы */
@media (prefers-color-scheme: light) {
    .report-btn:hover {
        background: #f8f9fa;
    }

    .report-modal select {
        background: #f8f9fa;
    }

    .report-modal select:focus {
        background: #ffffff;
    }
}
/* === ОБНОВЛЕННЫЙ ДИЗАЙН КАНАЛА С ГОРИЗОНТАЛЬНОЙ СТАТИСТИКОЙ === */

.channel-profile {
    position: relative;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.channel-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.8);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.channel-main {
    position: relative;
    padding: 0 20px 20px;
    margin-top: -40px;
}

.channel-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    border: 4px solid var(--tg-theme-section-bg-color);
    background: var(--tg-theme-section-bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.verified-badge {
    position: absolute;
    bottom: 4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid var(--tg-theme-section-bg-color);
}

.channel-info {
    text-align: left;
}

.channel-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

/* Горизонтальная статистика */
.channel-stats-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.stat-h-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-h-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.stat-h-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    font-weight: 500;
    text-align: center;
}

.stat-h-divider {
    width: 1px;
    height: 30px;
    background: var(--tg-theme-section-separator-color);
    opacity: 0.5;
}

.channel-description {
    margin-bottom: 20px;
}

.channel-description p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--tg-theme-text-color);
    margin: 0;
    opacity: 0.9;
}

.channel-actions {
    display: flex;
    gap: 12px;
}

.subscribe-btn,
.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.subscribe-btn {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.share-btn {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    border: 1px solid var(--tg-theme-section-separator-color);
}

.subscribe-btn:hover,
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 16px;
}

/* Стили для постов */
.posts-container {
    padding: 0 4px;
}

.empty-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--tg-theme-hint-color);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-posts h3 {
    color: var(--tg-theme-text-color);
    margin-bottom: 8px;
    font-size: 18px;
}

.empty-posts p {
    font-size: 14px;
    opacity: 0.8;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.post-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.post-date {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
}

.post-actions {
    flex-shrink: 0;
}

.action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-hint-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    transform: scale(1.05);
}

.post-content {
    margin-bottom: 16px;
}

.post-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--tg-theme-text-color);
    margin-bottom: 16px;
    word-break: break-word;
}

.post-media {
    margin-top: 16px;
}

/* Улучшенная галерея */
.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Для разного количества изображений */
.gallery-item:first-child:nth-last-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 16/9;
}

.gallery-item:first-child:nth-last-child(2),
.gallery-item:first-child:nth-last-child(2) ~ .gallery-item {
    grid-column: span 1;
}

.gallery-item:first-child:nth-last-child(3),
.gallery-item:first-child:nth-last-child(3) ~ .gallery-item {
    grid-column: span 1;
}

.gallery-item:first-child:nth-last-child(4),
.gallery-item:first-child:nth-last-child(4) ~ .gallery-item {
    grid-column: span 1;
}

.post-stats {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--tg-theme-section-separator-color);
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tg-theme-hint-color);
    font-size: 13px;
    font-weight: 500;
}

.stat svg {
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 480px) {
    .channel-main {
        padding: 0 16px 16px;
    }

    .channel-stats-horizontal {
        padding: 12px;
    }

    .stat-h-number {
        font-size: 16px;
    }

    .stat-h-label {
        font-size: 11px;
    }

    .channel-actions {
        flex-direction: column;
    }

    .post-card {
        padding: 16px;
    }

    .avatar-image {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .channel-name {
        font-size: 20px;
    }

    .modern-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .channel-stats-horizontal {
        flex-direction: column;
        gap: 12px;
    }

    .stat-h-divider {
        display: none;
    }

    .stat-h-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 8px 0;
    }

    .stat-h-number {
        margin-bottom: 0;
    }
}

/* Улучшения для светлой темы */
@media (prefers-color-scheme: light) {
    .channel-profile {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .post-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .post-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
}

/* === СТРАНИЦА ЖАЛОБЫ === */

.complaint-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    background: var(--tg-theme-bg-color);
    min-height: 100vh;
}

/* Хедер */
.complaint-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tg-theme-section-separator-color);
}

.back-button {
    color: var(--tg-theme-link-color);
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    font-weight: 500;
}

.complaint-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
}

/* Цель жалобы */
.complaint-target {
    background: var(--tg-theme-section-bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--tg-theme-section-separator-color);
}

.target-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.target-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color);
}

.target-info {
    flex: 1;
}

.target-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.target-type {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
}

/* Форма */
.complaint-form {
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--tg-theme-section-separator-color);
}

.form-section {
    margin-bottom: 32px;
}

.section-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 16px;
}

/* Типы жалоб */
.complaint-types {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-option {
    display: block;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--tg-theme-section-separator-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--tg-theme-secondary-bg-color);
}

.type-option input:checked + .type-content {
    border-color: var(--tg-theme-button-color);
    background: rgba(161, 131, 218, 0.1);
}

.type-option:hover .type-content {
    border-color: var(--tg-theme-button-color);
}

.type-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.type-text {
    flex: 1;
}

.type-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.type-desc {
    display: block;
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    line-height: 1.3;
}

/* Поля ввода */
.complaint-textarea,
.complaint-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--tg-theme-section-separator-color);
    border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.complaint-textarea:focus,
.complaint-input:focus {
    outline: none;
    border-color: var(--tg-theme-button-color);
    background: var(--tg-theme-bg-color);
}

.complaint-textarea::placeholder,
.complaint-input::placeholder {
    color: var(--tg-theme-hint-color);
}

.complaint-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.4;
}

.complaint-text.collapsed {
    max-height: 4.5em; /* ~3 строки */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.complaint-text.expanded {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

/* Загрузка файлов */
.evidence-upload {
    border: 2px dashed var(--tg-theme-section-separator-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.evidence-upload:hover {
    border-color: var(--tg-theme-button-color);
}

.upload-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 12px;
}

.upload-icon {
    font-size: 18px;
}

.upload-text {
    font-size: 14px;
}

.file-input {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    background: var(--tg-theme-bg-color);
}

/* Информационный блок */
.complaint-info {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(161, 131, 218, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--tg-theme-button-color);
    margin: 24px 0;
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--tg-theme-text-color);
}

.info-text strong {
    color: var(--tg-theme-button-color);
}

/* Подсказки */
.field-hint {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    margin-top: 8px;
    line-height: 1.3;
}

/* Ошибки */
.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f44336;
}

/* Кнопки */
.form-actions {
    margin-top: 32px;
}

.complaint-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.complaint-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(161, 131, 218, 0.3);
}

.complaint-submit:active {
    transform: translateY(0);
}

/* Сообщение об успехе */
.success-message {
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--tg-theme-section-separator-color);
    margin-top: 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: var(--tg-theme-text-color);
    font-weight: 600;
}

.success-content p {
    margin: 0 0 24px 0;
    color: var(--tg-theme-hint-color);
    line-height: 1.4;
}

.success-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.success-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(161, 131, 218, 0.3);
}

/* Адаптивность */
@media (max-width: 480px) {
    .complaint-page {
        padding: 16px 12px 32px;
    }

    .complaint-form {
        padding: 20px 16px;
    }

    .type-content {
        padding: 14px;
    }

    .type-icon {
        font-size: 18px;
        width: 20px;
    }

    .complaint-textarea,
    .complaint-input {
        padding: 14px;
    }

    .evidence-upload {
        padding: 16px;
    }
}

/* Улучшения для светлой темы */
@media (prefers-color-scheme: light) {
    .complaint-target,
    .complaint-form {
        background: #ffffff;
        border-color: #e9ecef;
    }

    .type-content {
        background: #f8f9fa;
    }

    .complaint-textarea,
    .complaint-input {
        background: #f8f9fa;
    }

    .complaint-textarea:focus,
    .complaint-input:focus {
        background: #ffffff;
    }

    .evidence-upload {
        background: #f8f9fa;
    }

    .file-input {
        background: #ffffff;
    }

    .complaint-info {
        background: rgba(161, 131, 218, 0.05);
    }

    .success-message {
        background: #ffffff;
    }
}

/* === СТРАНИЦА СПИСКА ЖАЛОБ === */

.complaints-list-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    background: var(--tg-theme-bg-color);
    min-height: 100vh;
}

/* Хедер */
.complaints-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tg-theme-section-separator-color);
}

.complaints-list-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-button {
    background: var(--tg-theme-section-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--tg-theme-text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-button:hover {
    border-color: var(--tg-theme-button-color);
}

/* Статистика в один ряд */
.complaints-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.complaints-stats::-webkit-scrollbar {
    display: none;
}

.stat-card {
    flex: 1;
    min-width: 110px;
    background: var(--tg-theme-section-bg-color);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid var(--tg-theme-section-separator-color);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card.active {
    border-color: var(--tg-theme-button-color);
    background: rgba(161, 131, 218, 0.05);
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Список жалоб */
.complaints-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.complaint-item {
    background: var(--tg-theme-section-bg-color);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--tg-theme-section-separator-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.complaint-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.complaint-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.complaint-meta {
    flex: 1;
}

.complaint-id {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 4px;
}

.complaint-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.complaint-target {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.target-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--tg-theme-secondary-bg-color);
}

.target-name {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
}

.status-in-pending {
    border-radius: 20px;
    padding: 6px 12px;
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}
.status-in-resolved {
    border-radius: 20px;
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-in-progress {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-resolved {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-rejected {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Контент жалобы */
.complaint-content {
    margin-bottom: 16px;
}

.complaint-type {
    display: inline-block;
    background: var(--tg-theme-secondary-bg-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 12px;
}

.complaint-preview {
    font-size: 14px;
    color: var(--tg-theme-text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Футер жалобы */
.complaint-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--tg-theme-section-separator-color);
}

.complaint-date {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
}

.complaint-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button {
    background: none;
    border: none;
    color: var(--tg-theme-link-color);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.action-button:hover {
    background: var(--tg-theme-secondary-bg-color);
}

/* Пустой список */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tg-theme-hint-color);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--tg-theme-text-color);
}

.empty-state p {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.4;
}

.new-complaint-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.new-complaint-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(161, 131, 218, 0.3);
}

/* Фильтры */
.complaints-filters {
    background: var(--tg-theme-section-bg-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--tg-theme-section-separator-color);
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 6px 12px;
    background: var(--tg-theme-secondary-bg-color);
    border: 1px solid var(--tg-theme-section-separator-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--tg-theme-text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-option.active {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border-color: var(--tg-theme-button-color);
}

/* Адаптивность */
@media (max-width: 480px) {
    .complaints-list-page {
        padding: 16px 12px 32px;
    }

    .complaint-item {
        padding: 16px;
    }

    .complaint-header {
        flex-direction: column;
        gap: 12px;
    }

    .complaint-status {
        align-self: flex-start;
    }

    .complaint-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .complaint-actions {
        align-self: flex-end;
    }

    .header-actions {
        gap: 8px;
    }

    .filter-button {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Адаптация статистики для мобильных */
    .stat-card {
        min-width: 100px;
        padding: 14px 8px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .complaints-stats {
        gap: 8px;
    }

    .stat-card {
        min-width: 90px;
        padding: 12px 6px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 10px;
    }
}

.complaint-item {
    animation: fadeIn 0.3s ease;
}

/* Улучшения для светлой темы */
@media (prefers-color-scheme: light) {
    .complaint-item,
    .complaints-filters,
    .stat-card {
        background: #ffffff;
        border-color: #e9ecef;
    }

    .filter-option {
        background: #f8f9fa;
    }

    .complaint-type {
        background: #f8f9fa;
    }

    .action-button:hover {
        background: #f8f9fa;
    }

    .stat-card.active {
        background: rgba(161, 131, 218, 0.05);
    }
}
/* === АДМИН ПАНЕЛЬ === */

.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    background: var(--tg-theme-bg-color, #f8f9fa);
    min-height: 100vh;
}

/* Статистика с адаптивной сеткой */
.admin-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--tg-theme-section-bg-color, #ffffff);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tg-theme-button-color, #6f42c1), var(--tg-theme-link-color, #007bff));
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--tg-theme-text-color, #333333);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--tg-theme-hint-color, #6c757d);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Приветствие */
.admin-welcome {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.welcome-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333333);
    margin-bottom: 8px;
}

.welcome-text strong {
    color: var(--tg-theme-button-color, #6f42c1);
}

.welcome-subtext {
    font-size: 16px;
    color: var(--tg-theme-hint-color, #6c757d);
    margin: 0;
}

.admin-divider {
    border: none;
    height: 1px;
    background: var(--tg-theme-section-separator-color, #e9ecef);
    margin: 0 0 32px 0;
}

/* Меню */
.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.menu-section {
    margin-bottom: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #333333);
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 4px solid var(--tg-theme-button-color, #6f42c1);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.menu-card {
    background: var(--tg-theme-section-bg-color, #ffffff);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--tg-theme-button-color, #6f42c1);
    text-decoration: none;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.menu-card:hover .card-icon {
    background: var(--tg-theme-button-color, #6f42c1);
    color: var(--tg-theme-button-text-color, #ffffff);
    transform: scale(1.1);
}

.card-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333333);
    margin: 0;
    transition: all 0.3s ease;
}

.menu-card:hover .card-title {
    color: var(--tg-theme-button-color, #6f42c1);
}

.card-arrow {
    font-size: 18px;
    color: var(--tg-theme-hint-color, #6c757d);
    transition: all 0.3s ease;
}

.menu-card:hover .card-arrow {
    color: var(--tg-theme-button-color, #6f42c1);
    transform: translateX(4px);
}

/* Адаптивность для статистики */
@media (max-width: 1024px) {
    .admin-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 16px 12px 32px;
    }

    .admin-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .welcome-text {
        font-size: 20px;
    }

    .welcome-subtext {
        font-size: 14px;
    }

    .menu-card {
        padding: 20px;
    }

    .card-content {
        gap: 12px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .admin-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .admin-stat-card {
        padding: 14px 12px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .section-title {
        font-size: 18px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .admin-stats-container {
        grid-template-columns: 1fr;
    }

    .admin-stat-card {
        flex-direction: row;
        text-align: left;
    }
}

.admin-stat-card {
    animation: slideIn 0.4s ease;
}

.menu-card {
    animation: slideIn 0.5s ease;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .admin-dashboard {
        background: #1a1a1a;
    }

    .admin-stat-card,
    .menu-card {
        background: #2d2d2d;
        border-color: #404040;
    }

    .card-icon {
        background: #404040;
    }
}
/* === СТРАНИЦА СТАТИСТИКИ === */
.stats-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    background: var(--tg-theme-bg-color, #f8f9fa);
    min-height: 100vh;
}

.stats-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.stats-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--tg-theme-text-color, #333333);
    background: linear-gradient(135deg, var(--tg-theme-button-color, #6f42c1), var(--tg-theme-link-color, #007bff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-subtitle {
    font-size: 16px;
    color: var(--tg-theme-hint-color, #6c757d);
    margin: 0;
}

/* Сетка статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stats-section {
    background: var(--tg-theme-section-bg-color, #ffffff);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stats-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--tg-theme-section-separator-color, #e9ecef);
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color, #333333);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-total {
    font-size: 24px;
    font-weight: 800;
    color: var(--tg-theme-button-color, #6f42c1);
    background: rgba(108, 66, 193, 0.1);
    padding: 8px 16px;
    border-radius: 12px;
}

/* Карточки статистики */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--tg-theme-bg-color, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.user-icon { background: rgba(108, 66, 193, 0.1); color: #6f42c1; }
.telegram-icon { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.browser-icon { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.online-icon { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }
.sold-icon { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.players-icon { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.subscribers-icon { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.posts-icon { background: rgba(32, 201, 151, 0.1); color: #20c997; }

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--tg-theme-text-color, #333333);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color, #6c757d);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-percent {
    font-size: 11px;
    color: var(--tg-theme-button-color, #6f42c1);
    font-weight: 600;
    margin-top: 2px;
}

/* Контейнеры диаграмм */
.chart-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tg-theme-section-separator-color, #e9ecef);
}

.chart-container h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333333);
    text-align: center;
}

/* Диаграмма распределения */
.distribution-chart {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-radius: 10px;
    padding: 16px;
}

.chart-bar {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.bar-segment:hover {
    transform: scale(1.05);
    z-index: 2;
}

.telegram-bar {
    background: linear-gradient(135deg, #0088cc, #00a2e8);
}

.browser-bar {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.bar-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Круговая диаграмма */
.pie-chart {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.pie {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        #dc3545 0% var(--sold-percent),
        #28a745 var(--sold-percent) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pie::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    background: var(--tg-theme-section-bg-color, #ffffff);
    border-radius: 50%;
}

.pie-value {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 800;
    color: var(--tg-theme-text-color, #333333);
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--tg-theme-text-color, #333333);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.sold-color { background: #dc3545; }
.available-color { background: #28a745; }

/* График активности */
.activity-chart {
    text-align: center;
}

.activity-bar {
    width: 40px;
    height: 120px;
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-radius: 20px;
    margin: 0 auto 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #6f42c1, #8b5cf6);
    border-radius: 20px;
    transition: height 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-value {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: rotate(-90deg);
    white-space: nowrap;
}

.activity-label {
    font-size: 12px;
    color: var(--tg-theme-hint-color, #6c757d);
}

/* Мини-графики для каналов */
.mini-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.mini-chart {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-chart:hover {
    background: var(--tg-theme-bg-color, #ffffff);
    transform: translateY(-2px);
}

.mini-chart-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--tg-theme-button-color, #6f42c1);
    margin-bottom: 4px;
}

.mini-chart-label {
    font-size: 11px;
    color: var(--tg-theme-hint-color, #6c757d);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-page {
        padding: 16px 12px 32px;
    }
    
    .stats-header h1 {
        font-size: 28px;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-total {
        align-self: flex-end;
    }
    
    .pie-chart {
        flex-direction: column;
        gap: 16px;
    }
    
    .mini-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 20px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .pie {
        width: 100px;
        height: 100px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-section {
    animation: fadeInUp 0.6s ease;
}

.stats-section:nth-child(1) { animation-delay: 0.1s; }
.stats-section:nth-child(2) { animation-delay: 0.2s; }
.stats-section:nth-child(3) { animation-delay: 0.3s; }
.stats-section:nth-child(4) { animation-delay: 0.4s; }

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .pie::before {
        background: #2d2d2d;
    }
    
    .activity-bar {
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}
/* Стили для секции движения средств */
.money-charts {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

.money-pie-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.money-pie {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        #10b981 0% var(--movement-percent),
        #3b82f6 var(--movement-percent) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.money-pie::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    background: var(--tg-theme-section-bg-color, #ffffff);
    border-radius: 50%;
}

.money-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.movement-color { background: #10b981; }
.balance-color { background: #3b82f6; }

/* График ежедневного оборота */
.daily-chart {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    border-radius: 12px;
    padding: 20px;
}

.bars-container {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    gap: 8px;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #10b981, #34d399);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 20px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.bar:hover {
    transform: scale(1.05);
    background: linear-gradient(to top, #059669, #10b981);
}

.bar-value {
    position: absolute;
    top: -25px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tg-theme-text-color, #333333);
    background: var(--tg-theme-section-bg-color, #ffffff);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar:hover .bar-value {
    opacity: 1;
}

.bar-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--tg-theme-hint-color, #6c757d);
    font-weight: 500;
}

/* Метрики */
.money-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.metric-card {
    background: var(--tg-theme-secondary-bg-color, #f8f9fa);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: var(--tg-theme-bg-color, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--tg-theme-button-color, #6f42c1);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 11px;
    color: var(--tg-theme-hint-color, #6c757d);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Иконки для денег */
.money-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.total-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.balance-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Тренд */
.stat-trend {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend.negative {
    color: #ef4444;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .money-charts {
        grid-template-columns: 1fr;
    }
    
    .money-pie-chart {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .money-metrics {
        grid-template-columns: 1fr;
    }
    
    .money-pie-chart {
        flex-direction: column;
        gap: 15px;
    }
    
    .bars-container {
        height: 150px;
    }
    
    .bar-value {
        font-size: 10px;
        top: -20px;
    }
}

@media (max-width: 480px) {
    .money-pie {
        width: 120px;
        height: 120px;
    }
    
    .metric-card {
        padding: 12px;
    }
    
    .metric-value {
        font-size: 16px;
    }
}

/* Анимации для графиков */
@keyframes growHeight {
    from {
        height: 0;
    }
    to {
        height: var(--target-height);
    }
}

.bar {
    animation: growHeight 1s ease-out;
}

.money-pie {
    animation: rotateIn 1s ease-out;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* === ДЕСКТОПНАЯ АДАПТАЦИЯ ПО ПРИНЦИПУ WILDBERRIES === */

@media (min-width: 768px) {
    /* Основные контейнеры */
    body {
        max-width: none;
        padding: 20px;
    }

    #phone {
        max-width: 1200px;
        margin: 0 auto;
        background: var(--tg-theme-bg-color);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    /* Навигация - как у Wildberries */
    #phone .navigation {
        position: static;
        background: var(--tg-theme-section-bg-color);
        border-bottom: 1px solid var(--tg-theme-section-separator-color);
    }

    #phone .main-gallery {
        display: flex;
        justify-content: center;
        height: auto;
        padding: 15px 0;
        max-width: 1200px;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    #phone .main-gallery a {
        margin: 0 8px;
        padding: 10px 20px;
        font-size: 14px;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    #phone .main-gallery a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(161, 131, 218, 0.3);
    }

    /* Сетка приложений - адаптивная */
    .categoryElem {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .categoryElem .col-6 {
        width: 100%;
        flex: none;
    }

    /* Карточки приложений */
    .cardProduct {
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .cardProduct:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .cardProduct picture {
        height: 180px;
    }

    .image-container-min {
        height: 180px !important;
    }

    .cardProduct .image-container-min img {
        height: 180px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .cardProduct:hover .image-container-min img {
        transform: scale(1.05);
    }

    /* Заголовок и описание */
    .cardProduct h3 {
        font-size: 16px;
        padding: 12px 12px 6px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .cardProduct p {
        font-size: 13px;
        line-height: 1.4;
        padding: 0 12px 12px;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Фильтры в строку */
    .filters-form {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .filters-form select {
        min-width: 200px;
        background: var(--tg-theme-section-bg-color);
        border: 1px solid var(--tg-theme-section-separator-color);
        border-radius: 8px;
        padding: 8px 12px;
        color: var(--tg-theme-text-color);
        font-size: 14px;
    }

    /* Поисковая строка */
    .container input[name="search"] {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: block;
        padding: 12px 20px;
        font-size: 16px;
        border: 1px solid var(--tg-theme-section-separator-color);
        border-radius: 25px;
        background: var(--tg-theme-section-bg-color);
        color: var(--tg-theme-text-color);
    }

    /* Нижняя навигация */
    .app-bar {
        position: fixed;
        background: var(--tg-theme-section-bg-color);
        border-top: 1px solid var(--tg-theme-section-separator-color);
        margin-top: 30px;
    }

    .app-bar-nav {
        max-width: 1200px;
        margin: 0 auto;
        border: none;
        box-shadow: none;
        padding: 10px 20px;
    }

    /* Заголовки */
    .container h2 {
        font-size: 24px;
        text-align: center;
        margin: 25px 0;
    }

    .description_category {
        font-size: 18px;
        text-align: center;
        margin-bottom: 20px;
        color: var(--tg-theme-text-color);
        opacity: 0.9;
    }
}

/* Планшетная версия */
@media (min-width: 768px) and (max-width: 1024px) {
    .categoryElem {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    #phone {
        margin: 0 20px;
    }
}

/* Десктопная версия */
@media (min-width: 1025px) {
    .categoryElem {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    #phone .main-gallery a {
        margin: 0 12px;
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Широкоэкранная версия */
@media (min-width: 1440px) {
    #phone {
        max-width: 1400px;
    }
    
    .categoryElem {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

/* Анимации для плавности */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoryElem .col-6 {
    animation: fadeInUp 0.5s ease;
}

.categoryElem .col-6:nth-child(1) { animation-delay: 0.1s; }
.categoryElem .col-6:nth-child(2) { animation-delay: 0.2s; }
.categoryElem .col-6:nth-child(3) { animation-delay: 0.3s; }
.categoryElem .col-6:nth-child(4) { animation-delay: 0.4s; }
.categoryElem .col-6:nth-child(5) { animation-delay: 0.5s; }
.categoryElem .col-6:nth-child(6) { animation-delay: 0.6s; }

/* Улучшение скроллбара для десктопа */
@media (min-width: 768px) {
    .fancy-scrollbar::-webkit-scrollbar {
        width: 8px;
    }
    
    .fancy-scrollbar::-webkit-scrollbar-track {
        background: var(--tg-theme-secondary-bg-color);
        border-radius: 4px;
    }
    
    .fancy-scrollbar::-webkit-scrollbar-thumb {
        background: var(--tg-theme-button-color);
        border-radius: 4px;
    }
    
    .fancy-scrollbar::-webkit-scrollbar-thumb:hover {
        background: var(--tg-theme-link-color);
    }
}


/* === БОКОВАЯ ПАНЕЛЬ ДЛЯ ДЕСКТОПА === */

@media (min-width: 1024px) {
    /* Основной макет с боковой панелью */
    .main-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 30px;
        max-width: 1200px;
        margin: 20px auto;
        padding: 0 20px;
        align-items: start;
    }

    /* Боковая панель */
    .sidebar {
        background: var(--tg-theme-section-bg-color);
        border-radius: 16px;
        padding: 25px 20px;
        height: fit-content;
        position: sticky;
        top: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--tg-theme-section-separator-color);
    }

    /* Основной контент */
    .main-content {
        min-width: 0;
    }

    /* Перемещаем контейнер в основной контент */
    .container {
        padding: 0;
        margin: 0;
    }

    /* Заголовок боковой панели */
    .sidebar-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--tg-theme-section-separator-color);
    }

    .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--tg-theme-text-color);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Навигация боковой панели */
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 25px;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 12px;
        text-decoration: none;
        color: var(--tg-theme-text-color);
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .sidebar-link:hover {
        background: var(--tg-theme-secondary-bg-color);
        transform: translateX(5px);
    }

    .sidebar-link.active {
        background: var(--tg-theme-button-color);
        color: var(--tg-theme-button-text-color);
    }

    .sidebar-link i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

    /* Блоки в боковой панели */
    .sidebar-block {
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--tg-theme-section-separator-color);
    }

    .sidebar-block:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .block-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--tg-theme-section-header-text-color);
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Категории в боковой панели */
    .category-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .category-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        border-radius: 8px;
        text-decoration: none;
        color: var(--tg-theme-text-color);
        transition: all 0.2s ease;
        font-size: 14px;
    }

    .category-item:hover {
        background: var(--tg-theme-secondary-bg-color);
    }

    .category-count {
        background: var(--tg-theme-secondary-bg-color);
        color: var(--tg-theme-hint-color);
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 500;
    }

    /* Быстрые фильтры */
    .quick-filters {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: var(--tg-theme-secondary-bg-color);
        border: 1px solid var(--tg-theme-section-separator-color);
        border-radius: 20px;
        text-decoration: none;
        color: var(--tg-theme-text-color);
        font-size: 13px;
        transition: all 0.2s ease;
    }

    .filter-tag:hover {
        background: var(--tg-theme-button-color);
        color: var(--tg-theme-button-text-color);
        border-color: var(--tg-theme-button-color);
    }

    /* Статистика в боковой панели */
    .sidebar-stats {
        background: var(--tg-theme-secondary-bg-color);
        border-radius: 12px;
        padding: 16px;
        margin-top: 20px;
    }

    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        font-size: 13px;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid var(--tg-theme-section-separator-color);
    }

    .stat-label {
        color: var(--tg-theme-hint-color);
    }

    .stat-value {
        font-weight: 600;
        color: var(--tg-theme-text-color);
    }
}

/* Планшетная версия с компактной боковой панелью */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-layout {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 20px;
        margin: 15px auto;
        padding: 0 15px;
    }

    .sidebar {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .sidebar-link {
        padding: 10px 12px;
        font-size: 14px;
    }

    .sidebar-link span {
        display: none; /* Скрываем текст, оставляем только иконки */
    }

    .sidebar-link i {
        font-size: 20px;
    }

    .block-title {
        text-align: center;
        font-size: 12px;
    }

    .category-item span {
        display: none;
    }

    .category-item .category-count {
        margin-left: auto;
    }
}

/* Адаптация для очень широких экранов */
@media (min-width: 1440px) {
    .main-layout {
        grid-template-columns: 320px 1fr;
        max-width: 1400px;
        gap: 40px;
    }

    .sidebar {
        padding: 30px 25px;
    }
}

/* Анимации для боковой панели */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar {
    animation: slideInLeft 0.5s ease;
}

/* Переключение видимости боковой панели (для мобильных) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1000;
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Предотвращаем скролл body когда боковая панель открыта */
body.sidebar-open {
    overflow: hidden;
}

/* Плавная анимация для оверлея */
.sidebar-overlay {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Улучшаем видимость кнопки переключения */
.sidebar-toggle {
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0
}

.slick-list:focus {
    outline: 0
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand
}

.slick-slider .slick-list,.slick-slider .slick-track {
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    -o-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0)
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-left: auto;
    margin-right: auto
}

.slick-track:after,.slick-track:before {
    display: table;
    content: ''
}

.slick-track:after {
    clear: both
}

.slick-loading .slick-track {
    visibility: hidden
}

.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px
}

[dir=rtl] .slick-slide {
    float: right
}

.slick-slide img {
    display: block
}

.slick-slide.slick-loading img {
    display: none
}

.slick-slide.dragging img {
    pointer-events: none
}

.slick-initialized .slick-slide {
    display: block
}

.slick-loading .slick-slide {
    visibility: hidden
}

.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent
}

.slick-arrow.slick-hidden {
    display: none
}

        /* === ДЕСКТОПНАЯ ВЕРСИЯ === */
        @media (min-width: 1024px) {
            .main-layout {
                display: grid;
                grid-template-columns: 280px 1fr;
                gap: 30px;
                max-width: 1200px;
                margin: 20px auto;
                padding: 0 20px;
                align-items: start;
            }

            .sidebar {
                position: sticky;
                top: 20px;
                background: var(--tg-theme-section-bg-color);
                border-radius: 16px;
                padding: 25px 20px;
                height: fit-content;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
                border: 1px solid var(--tg-theme-section-separator-color);
            }

            .main-content {
                min-width: 0;
            }

            .container {
                padding: 0;
                margin: 0;
            }
        }

        /* === ПЛАНШЕТНАЯ ВЕРСИЯ === */
        @media (min-width: 768px) and (max-width: 1023px) {
            .main-layout {
                display: grid;
                grid-template-columns: 200px 1fr;
                gap: 20px;
                margin: 15px auto;
                padding: 0 15px;
            }

            .sidebar {
                padding: 20px 15px;
                border-radius: 12px;
                position: sticky;
                top: 20px;
                background: var(--tg-theme-section-bg-color);
            }
        }

        /* === МОБИЛЬНАЯ ВЕРСИЯ - БЕЗ БОКОВОЙ ПАНЕЛИ === */
        @media (max-width: 767px) {
            .main-layout {
                display: block;
            }
            
            .sidebar {
                display: none !important;
            }
            
            .main-content {
                width: 100%;
            }
        }

        /* === ОСНОВНЫЕ СТИЛИ БОКОВОЙ ПАНЕЛИ (только для десктопа) === */
        .sidebar-header {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--tg-theme-section-separator-color);
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--tg-theme-text-color);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 25px;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            text-decoration: none;
            color: var(--tg-theme-text-color);
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .sidebar-link:hover {
            background: var(--tg-theme-secondary-bg-color);
            transform: translateX(5px);
        }

        .sidebar-link.active {
            background: var(--tg-theme-button-color);
            color: var(--tg-theme-button-text-color);
        }

        .sidebar-link i {
            font-size: 18px;
            width: 20px;
            text-align: center;
        }

        .sidebar-block {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--tg-theme-section-separator-color);
        }

        .sidebar-block:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .block-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--tg-theme-section-header-text-color);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .category-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .category-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-radius: 8px;
            text-decoration: none;
            color: var(--tg-theme-text-color);
            transition: all 0.2s ease;
            font-size: 14px;
        }

        .category-item:hover {
            background: var(--tg-theme-secondary-bg-color);
        }
		.category-item.active {
            background: var(--tg-theme-button-color);
            color: var(--tg-theme-button-text-color);
        }
        .category-count {
            background: var(--tg-theme-secondary-bg-color);
            color: var(--tg-theme-hint-color);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 500;
        }

        .quick-filters {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .filter-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: var(--tg-theme-secondary-bg-color);
            border: 1px solid var(--tg-theme-section-separator-color);
            border-radius: 20px;
            text-decoration: none;
            color: var(--tg-theme-text-color);
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .filter-tag:hover {
            background: var(--tg-theme-button-color);
            color: var(--tg-theme-button-text-color);
            border-color: var(--tg-theme-button-color);
        }

        .sidebar-stats {
            background: var(--tg-theme-secondary-bg-color);
            border-radius: 12px;
            padding: 16px;
            margin-top: 20px;
        }
		
        .stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            font-size: 13px;
        }

        .stat-item:not(:last-child) {
            border-bottom: 1px solid var(--tg-theme-section-separator-color);
        }

        .stat-label {
            color: var(--tg-theme-hint-color);
        }

        .stat-value {
            font-weight: 600;
            color: var(--tg-theme-text-color);
        }

        /* === ДЕСКТОПНАЯ АДАПТАЦИЯ ОСНОВНОГО КОНТЕНТА === */
        @media (min-width: 768px) {
            body {
                max-width: none;
                padding: 20px;
            }

            #phone {
                max-width: 1200px;
                margin-bottom: 100px;
                background: var(--tg-theme-bg-color);
                border-radius: 12px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
                overflow: hidden;
            }

            #phone .navigation {
                position: static;
                background: var(--tg-theme-section-bg-color);
                border-bottom: 1px solid var(--tg-theme-section-separator-color);
            }

            #phone .main-gallery {
                display: flex;
                justify-content: center;
                height: auto;
                padding: 15px 0;
                max-width: 1200px;
                margin: 0 auto;
                flex-wrap: wrap;
            }

            #phone .main-gallery a {
                margin: 0 8px;
                padding: 10px 20px;
                font-size: 14px;
                white-space: nowrap;
                transition: all 0.3s ease;
            }

            #phone .main-gallery a:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(161, 131, 218, 0.3);
            }

            .categoryElem {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 20px;
            }

            .categoryElem .col-6 {
                width: 100%;
                flex: none;
            }

            .cardProduct {
                transition: all 0.3s ease;
                height: 100%;
                display: flex;
                flex-direction: column;
            }

            .cardProduct:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            }

            .cardProduct picture {
                height: 180px;
            }

            .image-container-min {
                height: 180px !important;
            }

            .cardProduct .image-container-min img {
                height: 180px;
                object-fit: cover;
                transition: transform 0.3s ease;
            }

            .cardProduct:hover .image-container-min img {
                transform: scale(1.05);
            }

            .cardProduct h3 {
                font-size: 16px;
                padding: 12px 12px 6px;
                min-height: 48px;
                display: flex;
                align-items: center;
            }

            .cardProduct p {
                font-size: 13px;
                line-height: 1.4;
                padding: 0 12px 12px;
                flex-grow: 1;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .filters-form {
                display: flex;
                gap: 15px;
                align-items: center;
                flex-wrap: wrap;
                margin-top: 15px;
            }

            .filters-form select {
                min-width: 200px;
                background: var(--tg-theme-section-bg-color);
                border: 1px solid var(--tg-theme-section-separator-color);
                border-radius: 8px;
                padding: 8px 12px;
                color: var(--tg-theme-text-color);
                font-size: 14px;
            }

            .container input[name="search"] {
                width: 100%;
                max-width: 400px;
                margin: 0 auto;
                display: block;
                padding: 12px 20px;
                font-size: 16px;
                border: 1px solid var(--tg-theme-section-separator-color);
                border-radius: 25px;
                background: var(--tg-theme-section-bg-color);
                color: var(--tg-theme-text-color);
            }
            .container h2 {
                font-size: 24px;
                text-align: center;
                margin: 25px 0;
            }

            .description_category {
                font-size: 18px;
                text-align: center;
                margin-bottom: 20px;
                color: var(--tg-theme-text-color);
                opacity: 0.9;
            }
        }

        @media (min-width: 768px) and (max-width: 1024px) {
            .categoryElem {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 15px;
            }
            
            #phone {
                margin: 0 20px;
            }
        }

        @media (min-width: 1025px) {
            .categoryElem {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 25px;
            }
            
            #phone .main-gallery a {
                margin: 0 12px;
                padding: 12px 24px;
                font-size: 15px;
            }
            
            .container {
                padding: 0 30px;
            }
        }

        @media (min-width: 1440px) {
            #phone {
                max-width: 1400px;
            }
            
            .categoryElem {
                grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
                gap: 30px;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .categoryElem .col-6 {
            animation: fadeInUp 0.5s ease;
        }

        .categoryElem .col-6:nth-child(1) { animation-delay: 0.1s; }
        .categoryElem .col-6:nth-child(2) { animation-delay: 0.2s; }
        .categoryElem .col-6:nth-child(3) { animation-delay: 0.3s; }
        .categoryElem .col-6:nth-child(4) { animation-delay: 0.4s; }
        .categoryElem .col-6:nth-child(5) { animation-delay: 0.5s; }
        .categoryElem .col-6:nth-child(6) { animation-delay: 0.6s; }

        @media (min-width: 768px) {
            .fancy-scrollbar::-webkit-scrollbar {
                width: 8px;
            }
            
            .fancy-scrollbar::-webkit-scrollbar-track {
                background: var(--tg-theme-secondary-bg-color);
                border-radius: 4px;
            }
            
            .fancy-scrollbar::-webkit-scrollbar-thumb {
                background: var(--tg-theme-button-color);
                border-radius: 4px;
            }
            
            .fancy-scrollbar::-webkit-scrollbar-thumb:hover {
                background: var(--tg-theme-link-color);
            }
        }
        .complaint-meta {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 15px;
        }
		        .complaint-id {
            flex: 1;
        }

        .complaint-type {
            font-weight: 600;
            font-size: 16px;
            margin-right: 10px;
        }

        .status-in-pending {
            background: #ffa726;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-resolved {
            background: #4caf50;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .complaint-target {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .target-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            overflow: hidden;
        }

        .target-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .target-name {
            font-weight: 500;
            font-size: 14px;
        }

.author-label {
    color: var(--tg-theme-hint-color);
    font-size: 13px;
}

.author-name {
    font-weight: 500;
    color: var(--tg-theme-link-color);
}

.author-link {
    display: inline-flex;
    align-items: center;
    color: var(--tg-theme-hint-color);
    text-decoration: none;
    transition: color 0.2s;
}

.author-link:hover {
    color: var(--tg-theme-button-color);
}

.author-link .material-symbols-outlined {
    font-size: 16px;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .channel-author {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Форма ответа (прикреплена снизу) */
.reply_form {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 460px;
    margin: 0 auto;
    background: var(--tg-theme-section-bg-color);
    border-top: 1px solid var(--tg-theme-section-separator-color);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.reply_input_wrapper {
    flex: 1;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 24px;
    border: 1px solid var(--tg-theme-section-separator-color);
    padding: 4px 4px 4px 16px;
    display: flex;
    align-items: center;
}

.reply_input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--tg-theme-text-color);
    font-size: 15px;
    padding: 10px 0;
    max-height: 100px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.reply_input::placeholder {
    color: var(--tg-theme-hint-color);
}

.attach_btn {
    background: transparent;
    border: none;
    color: var(--tg-theme-hint-color);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.attach_btn:hover {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.send_btn {
    background: var(--tg-theme-button-color);
    border: none;
    color: var(--tg-theme-button-text-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send_btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(165, 131, 218, 0.4);
}

.send_btn .material-symbols-outlined {
    font-size: 24px;
}
/* Список прикреплённых файлов (для демонстрации) */
.file_list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--tg-theme-section-separator-color);
}

.file_item .file_name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tg-theme-text-color);
}

.file_item .file_name .material-symbols-outlined {
    font-size: 18px;
    color: var(--tg-theme-button-color);
}

.file_item .remove_file {
    color: var(--tg-theme-destructive-text-color);
    cursor: pointer;
    font-size: 18px;
}
.file_input {
    display: none;
}