/*  2.1
Developer: profygroup.com
Screen resolution: 460, 860, 1200, 1600, 1920 */

body {
    background: white;
    color: var(--text);
    line-height: normal;
    font-family: "Cutest", sans-serif;
    font-size: 16px;
    font-weight: 500;
}

body.menu-open {
    overflow: hidden;
}

/* HEADER STYLES */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
    align-items: start;
}

/* Логотип */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text1);
    font-size: 24px;
}

.logo-text {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Левый блок (логотип + описание) */
.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    align-items: start;
}

/* Описание сайта */
.header-description {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    border-left: 1px solid var(--primary);
    height: 40px;
    margin-left: 40px;
}

/* Каталог */
.catalog-menu {
    position: relative;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--text1);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 95, 169, 0.3);
}

.catalog-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.catalog-arrow.rotated {
    transform: rotate(180deg);
}

.catalog-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg2);
    border: 1px solid var(--bg2);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 8px;
    min-width: 400px;
}

.catalog-dropdown.show {
    display: flex;
}

.catalog-column {
    flex: 1;
    padding: 25px 20px;
}

.catalog-column:first-child {
    border-right: 1px solid var(--bg2);
}

.catalog-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.catalog-link {
    display: block;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
    padding-left: 10px;
}

.catalog-link:hover {
    color: var(--primary);
    background: rgba(100, 95, 169, 0.1);
    padding-left: 15px;
}

.description-separator {
    width: 2px;
    height: 60px;
    background: var(--bg2);
    border-radius: 1px;
}

.description-content {
    flex: 1;
}

.description-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.description-subtitle {
    font-size: 12px;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    opacity: 0.8;
}


/* Управление */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Переключатель языка */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 81, 181, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(63, 81, 181, 0.1);
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--text1);
    border-color: var(--primary);
}

.lang-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.lang-arrow.rotated {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(100, 95, 169, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 95, 169, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(100, 95, 169, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin-top: 8px;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text1);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.lang-option:hover {
    background: var(--primary);
    color: var(--text1);
}

.lang-option.active {
    color: var(--text1);
    font-weight: 500;
}


/* Корзина */
.header-cart {
    display: flex;
    align-items: center;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.cart-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 95, 169, 0.3);
}

.cart-icon {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border: 2px solid var(--text1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text1);
    font-weight: bold;
    font-size: 11px;
    min-width: 20px;
}


/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.menu-line {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg2);
    padding: 20px 30px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.show .mobile-menu-content {
    transform: translateX(0);
    transition-delay: 0.1s;
}

/* Заголовок мобильного меню */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s;
}

.mobile-menu.show .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
}

.mobile-logo-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--primary);
    transition: opacity 0.3s;
}

.mobile-logo-link:hover {
    opacity: 0.8;
}

.mobile-logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mobile-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
}

.mobile-description {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s;
}

.mobile-menu.show .mobile-description {
    opacity: 1;
    transform: translateY(0);
}

.mobile-description-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 10px 0;
}

.mobile-description-subtitle {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    opacity: 0.8;
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.4s;
}

.mobile-menu.show .mobile-controls {
    opacity: 1;
    transform: translateY(0);
}

.mobile-language,
.mobile-theme {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-control-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    opacity: 0.8;
}

.mobile-lang-buttons {
    display: flex;
    gap: 10px;
}

.mobile-lang-btn {
    padding: 8px 16px;
    background: var(--bg2);
    border: 1px solid var(--bg2);
    border-radius: 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-lang-btn.active,
.mobile-lang-btn:hover {
    background: var(--primary);
    color: var(--text1);
    border-color: var(--primary);
}


.mobile-close-btn {
    width: 35px;
    height: 35px;
    background: var(--bg2);
    border: 1px solid var(--bg2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.mobile-close-btn:hover {
    background: var(--primary);
    color: var(--text1);
    border-color: var(--primary);
    transform: scale(1.1);
}



.mobile-nav {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.3s;
}

.mobile-menu.show .mobile-nav {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 15px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--bg2);
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-catalog-section {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--bg2);
    border-bottom: 1px solid var(--bg2);
}

.mobile-catalog-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.mobile-catalog-links {
    display: flex;
    gap: 20px;
}

.mobile-catalog-column {
    flex: 1;
}

.mobile-catalog-subtitle {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--bg2);
}

.mobile-catalog-link {
    display: block;
    padding: 6px 0 6px 15px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
    margin-bottom: 2px;
}

.mobile-catalog-link:hover {
    color: var(--primary);
    background: rgba(100, 95, 169, 0.1);
    padding-left: 20px;
}




/* PRODUCT CARD STYLES */
.product-card {
    background: var(--bg2);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--bg);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: object-position 9s ease-in-out;
}

.product-card:hover .product-img {
    object-position: bottom;
}



.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.badge-new {
    background: #ff4444;
    color: var(--text1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cms-logos {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 4px 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cms-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cms-logo:hover {
    opacity: 1;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    margin-bottom: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-tag {
    background: rgba(100, 95, 169, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category .rating {
    font-size: 12px;
    color: var(--text);
    opacity: 0.8;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    margin-bottom: 15px;
    margin-top: 15px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text);
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-link:hover .product-title {
    color: var(--primary);
}

.product-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 26px;
    font-weight: 500;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--text);
    opacity: 0.5;
    text-decoration: line-through;
}

.btn-buy {
    background: var(--primary);
    color: var(--text1);
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-buy:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 95, 169, 0.3);
}




/* SECTION TITLE STYLES */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--bg);
    opacity: 0.3;
}


/* FOOTER STYLES */
.main-footer {
    background: var(--bg2);
    border-top: 3px solid var(--primary);
    margin-top: 60px;
    padding: 60px 0 30px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 30% 40% 30%;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.8;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    background: var(--primary);
    color: var(--text1);
    transform: translateY(-2px);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
}

.nav-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
}

.nav-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 2px;
}

.contact-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 2px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
    padding-left: 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
    padding-left: 10px;
}

.nav-links a:hover::before {
    width: 8px;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
}

.contact-item:hover {
    opacity: 1;
}

.contact-item i {
    width: 16px;
    color: var(--primary);
    font-size: 14px;
}


/* Footer Copyright */
.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid rgba(100, 95, 169, 0.1);
    gap: 20px;
    margin-top: 30px;
    border-radius: 15px;
}

.copyright-text {
    font-size: 13px;
    color: var(--text);
    opacity: 0.6;
    margin: 0;
}

.copyright-links {
    display: flex;
    gap: 20px;
}

.copyright-links a {
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.copyright-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Dark theme for footer */

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(100, 95, 169, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(100, 95, 169, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}


/* TEMPLATE PAGE STYLES */
.template-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

.template-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.template-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.template-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.template-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.template-title-section {
    flex: 1;
}

.template-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.category-badge {
    background: rgba(100, 95, 169, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
}

.rating-text {
    font-size: 13px;
}


/* Template Gallery */
.main-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-zoom-btn:hover {
    background: rgba(100, 95, 169, 0.9);
    transform: scale(1.1);
}

.video-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: rgba(220, 38, 38, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.template-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
}

/* Fancybox Gallery */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav:hover {
    background: rgba(100, 95, 169, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Fancybox Customization */
.fancybox__toolbar {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

.fancybox__button {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fancybox__button:hover {
    background: rgba(100, 95, 169, 0.8);
    transform: scale(1.1);
}

/* Навигационные стрелки Fancybox */
.fancybox__button--prev,
.fancybox__button--next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
}

.fancybox__button--prev {
    left: 20px !important;
}

.fancybox__button--next {
    right: 20px !important;
}

.fancybox__button--prev:hover,
.fancybox__button--next:hover {
    background: rgba(100, 95, 169, 0.9) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.fancybox__button--prev svg,
.fancybox__button--next svg {
    width: 20px !important;
    height: 20px !important;
    fill: white !important;
}

.fancybox__thumbs {
    background: rgba(0, 0, 0, 0.9);
}

.fancybox__thumb {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fancybox__thumb:hover,
.fancybox__thumb.is-selected {
    border-color: var(--primary);
    transform: scale(1.05);
}



.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Comments Styles */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bg);
    transition: all 0.3s ease;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: rgba(100, 95, 169, 0.02);
    margin: 0 -20px;
    padding: 20px;
    border-radius: 8px;
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bg);
    transition: all 0.3s ease;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-item:hover .comment-avatar {
    border-color: var(--primary);
    transform: scale(1.05);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    margin-bottom: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.author-name {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
    transition: color 0.3s ease;
}

.comment-item:hover .author-name {
    color: var(--primary);
}

.comment-date {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    font-weight: 400;
}

.comment-text {
    line-height: 1.6;
}

.comment-text p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    word-wrap: break-word;
}


/* Header User Styles */
.header-user {
    position: relative;
    display: inline-block;
}

.header-user>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(100, 95, 169, 0.1);
    border-radius: 25px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.header-user>a:hover {
    background: rgba(100, 95, 169, 0.2);
    color: var(--primary);
}

.header-user>a i {
    font-size: 16px;
}

.header-user>div {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg2);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.header-user:hover>div {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user_av {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg);
    margin-bottom: 12px;
}

.header-user_av img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.header-user_av span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.header-user_av span span {
    font-weight: 400;
    font-size: 12px;
    color: var(--text);
    opacity: 0.7;
}

.header-user_menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-user_menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.header-user_menu a:hover {
    background: rgba(100, 95, 169, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.header-user_menu a i {
    width: 16px;
    font-size: 14px;
}


.gallery-thumbnails a {
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: block;
}

.gallery-thumbnails a:hover,
.gallery-thumbnails a.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-thumbnails a[data-fancybox] {
    pointer-events: none;
}

.gallery-thumbnails a[data-fancybox] img {
    pointer-events: auto;
    cursor: pointer;
}


.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Template Content */
.template-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.template-description {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.template-description h3,
.template-features h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    position: relative;
}

.template-description h3::after,
.template-features h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.description-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.9;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--bg);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--primary);
    font-size: 16px;
}

/* Template Purchase */
.template-purchase {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.template-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 36px;
    font-weight: 500;
    color: var(--primary);
}

.old-price {
    font-size: 20px;
    color: var(--text);
    opacity: 0.5;
    text-decoration: line-through;
}

.discount {
    background: #ff4444;
    color: var(--text1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

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

.btn-buy-now {
    background: var(--primary);
    color: var(--text1);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.btn-buy-now:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 95, 169, 0.3);
}

.btn-terms {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 13px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.btn-terms:hover {
    background: var(--primary);
    color: var(--text1);
    transform: translateY(-2px);
}



/* Template Specifications */
.template-specifications {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.template-specifications h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    position: relative;
}

.template-specifications h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.specs-grid {
    display: grid;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
}

.spec-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Purchase Terms */
.purchase-terms {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--bg);
}

.terms-list li:last-child {
    border-bottom: none;
}

.terms-list i {
    color: var(--primary);
    font-size: 14px;
}

/* Template Comments */
.template-comments {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    position: relative;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.add-comment-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px 0;
}


/* User Profile Page Styles */
.celena-user {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #8B7ED8 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(100, 95, 169, 0.2);
}

.celena-user>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

.celena-user_content {
    position: relative;
    z-index: 2;
    padding: 30px;
    gap: 40px;
    align-items: start;
    align-items: center;
}

.celena-user_profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    min-width: 200px;
}

.celena-user_profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.celena-user_profile img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.celena-user_profile h3 {
    margin: 0;
    color: white;
    font-size: 28px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.celena-user_profile span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.celena-user_detal {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.celena-user_detal span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    line-height: 1.5;
}

.celena-user_detal b {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    min-width: 160px;
}

.celena-user_link {
    display: flex;
    align-items: center;
}

.celena-user_link .e-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.celena-user_link .e-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Edit Form */
.celena-user_edit {
    background: var(--bg2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bg);
}

.celena-user_edit:target {
    display: block !important;
}

.celena-form_flex {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.celena-form_flex label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    margin-bottom: 5px;
}

.celena-form_flex input,
.celena-form_flex textarea {
    background: var(--bg);
    color: var(--text);
    border: 1px solid #5249b766;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.celena-form_flex input:focus,
.celena-form_flex textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 95, 169, 0.1);
}

.celena-form_flex input::placeholder,
.celena-form_flex textarea::placeholder {
    color: var(--text);
    opacity: 0.7;
}

.celena-user_edit button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.celena-user_edit button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 95, 169, 0.3);
}


/* New User Profile Page Styles */
.user-profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    background: var(--bg2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url(../images/bg.jpg) center / cover;
    z-index: 1;
}

.profile-cover {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    margin-right: 30px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-avatar img:hover {
    transform: scale(1.05);
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-info {
    flex: 1;
    padding-top: 60px;
}

.profile-name {
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 8px 0;
}

.profile-role {
    font-size: 16px;
    color: var(--text);
    opacity: 0.7;
    margin: 0 0 20px 0;
}

.profile-stats {
    display: flex;
    gap: 40px;
    align-items: start;
}

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

.stat-number {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
}

.profile-actions {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-top: 60px;
}

.btn-edit,
.btn-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-edit {
    background: var(--primary);
    color: white;
}

.btn-edit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-message {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-message:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Profile Content */
.profile-content {
    display: grid;
}

/* Detail Card */
.detail-card,
.activity-card {
    background: var(--bg2);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bg);
}

.detail-card h3,
.activity-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
}

.detail-item i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

.status-online {
    color: #4CAF50 !important;
    position: relative;
    padding-left: 20px;
}

.status-online::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Activity Card */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(100, 95, 169, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 4px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.activity-time {
    font-size: 13px;
    color: var(--text);
    opacity: 0.6;
}

/* Edit Modal */
.profile-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-edit-modal:target,
.profile-edit-modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.profile-edit-modal.e-none {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.edit-modal-content {
    background: var(--bg2);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--bg);
}

.edit-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}

.edit-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-close:hover {
    background: rgba(100, 95, 169, 0.2);
    color: var(--primary);
}

.edit-form {
    padding: 25px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid #5249b766;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 95, 169, 0.1);
}

.avatar-upload {
    border: 2px dashed #5249b766;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.avatar-upload:hover {
    border-color: var(--primary);
    background: rgba(100, 95, 169, 0.05);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.form-actions button[type="submit"] {
    background: var(--primary);
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-cancel {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--bg) !important;
}

.btn-cancel:hover {
    background: var(--bg);
    transform: translateY(-2px);
}





/* Floating Label Styles */
.e-float {
    position: relative;
    margin-bottom: 20px;
}

.e-float input {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid #5249b766;
    border-radius: 10px;
    padding: 15px 16px 8px 16px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.e-float input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(100, 95, 169, 0.1);
}

.e-float input::placeholder {
    color: transparent;
}

.e-float label {
    position: absolute;
    left: 16px;
    top: 15px;
    color: var(--text);
    opacity: 0.7;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    pointer-events: none;
}

.e-float input:focus+label,
.e-float input:not(:placeholder-shown)+label {
    top: 5px;
    font-size: 12px;
    color: var(--primary);
    opacity: 1;
}

.modal-login_btn {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-login_btn button {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-login_btn button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.modal-login_btn .e-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-login_btn .e-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.modal-login_lost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 13px;
}

.modal-login_lost a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.modal-login_lost a:hover {
    text-decoration: underline;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox label {
    position: static;
    margin: 0;
    font-size: 13px;
    color: var(--text);
    opacity: 0.8;
}

/* COOKIE BANNER STYLES */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-top: 2px solid var(--primary);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.cookie-text i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-accept,
.btn-decline {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-accept {
    background: var(--primary);
    color: white;
}

.btn-accept:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-decline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--bg);
}

.btn-decline:hover {
    background: var(--bg);
    color: var(--text);
}

/* TERMS PAGE STYLES */
.terms-page {
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text);
}

.terms-container {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--bg);
}

.terms-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
}

.terms-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.terms-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
}

.terms-brand {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.terms-date,
.terms-site,
.terms-contacts {
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
    margin: 0;
}

.terms-site a,
.terms-contacts a,
.terms-contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-site a:hover,
.terms-contacts a:hover,
.terms-contact-info a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.terms-intro {
    background: rgba(100, 95, 169, 0.05);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
}

.terms-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
}

.terms-content {
    margin-bottom: 40px;
}

.terms-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bg);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.terms-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.terms-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 15px 0;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid var(--bg);
}

.terms-contact-info {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

/* Responsive styles for terms page */
@media (max-width: 768px) {
    .terms-page {
        padding: 20px 15px;
    }

    .terms-container {
        padding: 25px;
    }

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

    .terms-meta {
        gap: 6px;
    }

    .terms-brand {
        font-size: 18px;
    }

    .terms-date,
    .terms-site,
    .terms-contacts {
        font-size: 13px;
    }

    .terms-section .section-title {
        font-size: 18px;
    }

    .terms-section p {
        font-size: 14px;
    }
}