body {
    margin: 0;
    font-family: sans-serif;
    background: var(--color-bg);
    color: var(--color-fg);
    overflow-x: hidden;
}

/* Хедер */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    box-shadow: 0 2px 4px var(--box-shadow);
    position: fixed;
    z-index: 1000;
    width: 100%;
}

.menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.menu-toggle .icon {
    width: 20px;
    height: 2px;
    background: var(--color-fg);
    position: relative;
}

.menu-toggle .icon::before,
.menu-toggle .icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--color-fg);
}

.menu-toggle .icon::before { top: -6px; }
.menu-toggle .icon::after { top: 6px; }
.menu-toggle .text {
    margin-left: 0.5rem;
    color: var(--color-fg);
    position: relative;
}

/* Подчеркивание по hover */
.underline-hover {
    position: relative;
    cursor: pointer;
}

.underline-hover::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0;
    background: #333;
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}

.header .logo {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Оверлей */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Боковое меню */
.side-menu {
    position: fixed;
    top: 0; left: -260px;
    width: 260px;
    height: 100%;
    background: var(--color-bg);
    box-shadow: 2px 0 8px var(--box-shadow);
    transition: left 0.3s ease;
    z-index: 1100;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.side-menu.menu-open {
    left: 0;
}

.side-menu .close-btn, .modal-block .close-btn {
    font-size: 2rem;
    border: none;
    background: none;
    color: var(--color-fg);
    align-self: flex-end;
    cursor: pointer;
    transition: color 0.2s;
}

.side-menu .close-btn:hover, .modal-block .close-btn:hover {
    color: var(--color-grey-dark);
}

.side-menu .menu-item {
    margin: 0.75rem 0;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    padding-bottom: 0.125rem;
}

.side-menu .menu-item.underline-hover {
    padding-bottom: 0.25rem;
}

.user-icon {
    display: flex;
    cursor: pointer;
}

.profile-img-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
}

.profile-img-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid black;
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-img-wrapper:hover::after {
    opacity: 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.user-modal {
    display: none;
    position: fixed;
    top: 50px;
    right: 10px;
    width: 250px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 9999;
}

.user-modal-content {
    text-align: center;
}

/* Рекламный блок */
.promo {
    padding: 85px 1rem 2rem 1rem;
    text-align: center;
    background: var(--color-grey-light);
}

.promo h2 {
    margin-bottom: 1rem;
}

.block-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
    letter-spacing: 2px;
    margin-left: 4%;
}

.transactions {
    overflow-y: auto;
    overflow-x: hidden;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-bg-grey-dark);
    margin-bottom: 5px;
}

.transaction-item:last-child {
    margin-bottom: 0;
}

.transaction-info {
    display: flex;
    flex-direction: column;
}

.transaction-amount {
    font-weight: bold;
}

.transaction-wallet {
    font-size: 1rem;
    color: var(--color-grey-dark);
    font-family: 'Bebas Neue', sans-serif;
    text-align: left;
    letter-spacing: 1px;
}

.transaction-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.transaction-status {
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
    color: var(--color-bg);
    margin-bottom: 0.3rem;
    min-width: 100px;
    text-align: center;
}

.transaction-time {
    font-size: 0.8rem;
    color: var(--color-grey-dark);
}

.status-confirmed { background: #000; }
.status-processing { background: var(--color-grey); color: #000; }
.status-canceled { background: #dc3545; }

/* Отзывы */
.reviews, .transactions, .faq {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto 4rem;
    list-style: none;
    padding: 0;
}

.review {
    display: flex;
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid black;
    background: var(--color-bg);
}

.review:last-child {
    border-bottom: 0 solid black;
}

.review-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.review-image {
    max-height: 250px;
    object-fit: contain;
    max-width: 48%;
    cursor: pointer;
}

.review-video {
    max-height: 250px;
    max-width: 48%;
}

.review-source-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem 2rem 2rem;
}

.attachments-title {
    margin: 20px 0 0 0;
    color: var(--color-grey-dark);
    font-size: 0.8rem;
}

.review-content {
    flex: 1;
}

.review-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.review-text {
    font-style: italic;
    color: var(--color-grey-dark);
    border-left: 4px solid var(--color-fg);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.reviews ul, .transactions ul {
    padding-left: 0;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1200;
    padding: 1rem;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.image-modal img.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: zoom-out;
}

.image-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1201;
}

.user-unverified {
    border: 1px solid var(--color-fg);
    color: var(--color-error);
    padding: 2px 6px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.user-verified {
    border: 1px solid var(--color-fg);
    color: var(--color-fg);
    padding: 2px 6px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.switch {
    position: relative;
    display: flex;
    width: 50px;
    height: 28px;
    align-items: center;
}

.switch input { display: none; }
.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
    width: 50px;
    height: 28px;
    left: 0;
}

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

input:checked + .slider { background-color: var(--color-fg); }
input:checked + .slider:before { transform: translateX(22px); }
input[data-no-slide]:checked + .slider { background-color: #ccc; }
input[data-no-slide]:checked + .slider:before { transform: translateX(0) !important; }

.partner-swiper {
    width: 100%;
    padding: 1rem 0;
}

.partner-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 1rem;
    height: 140px;
}

.partner-slide img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 1.4rem;
    margin-left: 15px;
    font-family: 'Bebas Neue', sans-serif;
}

.modal-block {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

.modal-block.show {
    display: flex;
}

.modal-block .tab-button.active {
    border-bottom: 2px solid #0d6efd;
    color: #0d6efd;
}

.modal-block .modal-content {
    background: var(--color-bg);
    border-radius: 0;
    width: 400px;
}

.modal-block .modal-header {
    display: flex;
    padding: 0;
}

.modal-block .modal-header .close-btn {
    padding: 0 1rem;
}

.modal-block .modal-header .modal-title {
    padding: 0 1rem;
}

.modal-block .tabs {
    justify-content: center;
    border-bottom: 1px solid var(--color-grey-dark);
    gap: 20px;
    padding-bottom: 10px;
}

.modal-block .nav-item {
    padding: 10px;
}

.modal-block .nav-item.underline-hover::after {
    bottom: 0px;
}

.modal-block .nav-item.active {
    border-bottom: 2px solid var(--color-fg);
}

.faq-wrap {
    background: var(--color-bg-grey-darker);
    border: 1px solid var(--color-bg-grey-dark);
}

.faq-wrap .btn-faq {
    text-decoration: none;
    color: var(--color-white-text);
    display: block;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 24px 90px 24px 24px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.btn-faq .underline-hover::after {
    background: var(--color-white-text);
}

.faq-wrap .btn-faq:after {
    content: "";
    position: absolute;
    right: 28px;
    top: 40%;
    height: 15px;
    width: 15px;
    border-left: 3px solid var(--color-white-text);
    border-bottom: 3px solid var(--color-grey-light);
    transform: rotate(135deg) translateY(-50%);
    transition-duration: 0.5s;
}

.faq-wrap .btn-faq.collapsed:after {
    content: "";
    right: 20px;
    border-left: 3px solid var(--color-white-text);
    border-bottom: 3px solid var(--color-grey-light);
    transform: rotate(-45deg) translateY(-50%);
    transition-duration: 0.5s;
}

.faq-wrap .card {
    color: var(--color-bg-grey-dark);
    background: var(--color-white-text);
    border-radius: 0;
}

.faq-wrap .card  p {
    border-top: 1px solid var(--color-grey);
    padding-top: 10px;
}

.faq-wrap .card-body {
    padding: 0 50px 0 24px !important;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-fg);
    color: var(--color-white-text);
    font-weight: bold;
    cursor: pointer;
}

.upload-btn:hover {
    opacity: 0.9;
}

#upload-progress {
    width: 100%;
    height: 20px;
    background-color: var(--color-grey-dark);
    overflow: hidden;
    position: relative;
    display: none;
}

#upload-progress .bar {
    height: 100%;
    width: 0%;
    background-color: var(--color-fg);
    transition: width 0.3s ease;
}

#upload-progress .progress-label {
    position: absolute;
    width: 100%;
    text-align: center;
    color: var(--color-white-text);
    font-size: 0.9rem;
}

.kyc-form {
    padding: 0 1rem;
}

.kyc-form .input-description {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-fg);
    margin: 0;
}

.kyc-form .input-notification {
    font-size: 0.9rem;
    color: var(--color-grey-dark);
    margin-bottom: 0.5rem;
}

.kyc-form .header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kyc-form .doc-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-fg);
}

.kyc-form .back-link {
    font-size: 0.9rem;
    color: var(--color-grey-dark);
    cursor: pointer;
}

.kyc-form .preview-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: space-between;
}

.kyc-form .image-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.kyc-form .image-container .input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-fg);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kyc-form .image-field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.kyc-form .image-field img {
    display: none;
    height: 120px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid var(--color-grey);
    background: var(--color-grey-light);
    max-width: 100%;
}

.kyc-form .image-field input[type="file"] {
    display: none;
}

.kyc-form .image-container.is-invalid .image-field img {
    border-color: var(--color-error);
}

.kyc-form .image-container.is-invalid .download-btn {
    border-color: var(--color-error);
    color: var(--color-error);
}

.kyc-form .invalid-field {
    font-size: 0.85rem;
    color: var(--color-error);
}

.plan-conditions {
	margin-top: 2rem;
	padding: 1rem;
	background: var(--color-grey-light);
	border: 1px solid var(--color-grey);
	flex-direction: column;
	gap: 15px;
}

.plan-conditions div {
	font-size: 0.9rem;
}

@media (max-width:576px) {
    .modal-block .modal-content {
        width: 100vw;
    }

    .reviews {
        margin: 20px 3px 30px 3px;
        width: 100%;
    }

    .review {
        padding: 0;
    }

    .review-source-container {
        padding: 0 3px 20px 3px;
    }
}
