
/* Вся обёртка сайта — на всю ширину без внутренних отступов */
.header-logo.topx-0 {
    top: 0 !important;
}
.site-layout.wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #030712 !important;
}

body:not(.dark) .site-layout.wrapper {
    background-color: #f4f5f7 !important;
}

/* Контейнер основного контента тоже не должен сужать страницу */
.site-layout.wrapper .main__container {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto!important;
    /* padding: 0 90px !important; */
    background-color: #030712 !important;
}

/* Light theme - white background */
body:not(.dark) .site-layout.wrapper .main__container {
    background-color: #f4f5f7 !important;
}

/* Main section background */
.main-section {
    background-color: #030712 !important;
}

body:not(.dark) .main-section {
    background-color: #f4f5f7 !important;
}

/* На всякий случай гарантируем ширину хедера */
.header-section {
    width: 100% !important;
}

/* FIGMA HEADER STYLES - Exact match */
.header__row {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 160px !important;
    height: 54px !important;
    box-sizing: border-box !important;
}

.header__row-left {
    gap: 100px !important;
}

.header__row-right {
    gap: 30px !important;
}

.header-right-inner {
    gap: 30px !important;
}

.header-nav__list {
    gap: 30px !important;
    @media screen and (max-width: 800px) {
        gap: 20px !important;
    }
}

.header-nav__list a {
    font-size: 18px !important;
    font-weight: 300 !important;
    padding: 5px !important;
    margin: 0 !important;
}

.language-toggle-btn {
    gap: 10px !important;
}

.language-text-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
/* article detials page css  */
.publishTime {
    margin-right: 20px;
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.2) 100%); ;
    border-radius: 10px;
    line-height: 1 !important;
    margin-bottom: 0 !important;
}
body:not(.dark) .publishTime {
    background-color: #cecece !important;
}
/* по умолчанию мобильный блок скрыт */
.header-mobile-only {
    display: none;
}
@media (max-width: 1024px) {
    /* Mobile Header - Figma Design */
    .header-section,
    .header-section.header {
        padding: 11px 16px !important;
        height: auto !important;
        min-height: 81px !important;
        margin-bottom: 0 !important;
    }

    .header-section .header__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        height: auto !important;
        padding: 0 160px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .header__row-left {
        display: none;
    }

    /* Show header__row-left when mobile menu is open, but hide the logo */
    body.mobile-nav-open .header__row-left {
        display: block !important;
        width: 100%;
        position: relative;
    }

    /* Hide logo in header__row-left when menu is open on mobile (to prevent duplicate) */
    body.mobile-nav-open .header__row-left .header-logo {
        display: none !important;
    }

    /* Top row: Logo | Language | Menu */
    .header__row-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 24px;
        margin: 0;
        padding: 0;
        position: relative;
    }

    .header-logo {
        flex-shrink: 0;
        height: 24px;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .header-logo a {
        display: flex;
        align-items: center;
        height: 24px;
        margin: 0;
        padding: 0;
    }

    .header-logo img {
        height: 24px;
        width: auto;
        display: block;
        margin: 0;
        padding: 0;
    }

    /* Right side: Language + Menu */
    .header__row-right {
        display: none !important;
    }

    .header__row-right-mobile {
        display: flex;
        align-items: center;
        margin-left: auto;
        height: 24px;
        flex-shrink: 0;
    }

    /* Language selector - mobile visible */
    .header-mobile-language {
        display: flex !important;
        align-items: center;
        gap: 5px;
        margin-left: 0;
        flex-shrink: 0;
    }

    .header-mobile-language .header-dropdown__row {
        position: relative;
    }

    .header-mobile-language .header-dropdown__button {
        display: none;
        align-items: center;
        gap: 5px;
        background: transparent !important;
        border: none;
        padding: 0;
        cursor: pointer;
        height: 24px;
        margin: 0;
    }

    .header-mobile-language .header-dropdown__icon {
        width: 17px;
        height: 17px;
    }

    .header-mobile-language .header-dropdown__icon-color {
        fill: #ffffff;
        stroke: #ffffff;
    }

    .header-mobile-language .language-text {
        font-size: 18px;
        font-weight: 300;
        color: #ffffff;
        font-family: 'Helvetica', sans-serif;
    }

    .header-mobile-language .language-arrow {
        width: 20px;
        height: 20px;
        color: #ffffff;
    }

    .header-mobile-language .language-arrow svg {
        stroke: #ffffff;
    }

    /* Hamburger menu */
    .header-btn,
    #header-burger-mobile {
        display: block;
        width: 24px;
        height: 24px;
        margin: 0;
        cursor: pointer;
        position: relative;
    }

    .header-btn span,
    #header-burger-mobile span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff;
        margin: 4px 0;
        transition: all 0.3s;
    }

    /* Bottom row: Theme toggle | Login button */
    .header__row-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin-top: 13px;
        height: 44px;
        padding: 0;
    }

    /* Theme toggle - mobile visible */
    .header-mobile-theme {
        display: flex !important;
        align-items: center;
    }

    .header-mobile-theme .theme-toggle-wrapper {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.05) 100%);
        border-radius: 50px;
        padding: 2px;
        display: flex;
        gap: 5px;
        height: 44px;
    }

    .header-mobile-theme .theme-toggle-btn {
        width: 30px;
        height: 30px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        color: #ffffff;
    }

    .header-mobile-theme .theme-toggle-btn-sun {
        opacity: 0.5;
    }

    .header-mobile-theme .theme-toggle-btn-moon {
        background: #000000;
    }

    .header-mobile-theme .theme-toggle-btn svg {
        width: 17px;
        height: 17px;
        stroke: #ffffff;
    }

    .header-mobile-theme .theme-toggle-btn-moon svg {
        width: 17px;
        height: 17px;
    }

    /* Login button - mobile visible */
    .header-mobile-login {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.05) 100%);
        border-radius: 50px;
        padding: 0;
        height: 34px;
        width: 211px;
        text-decoration: none;
        color: #ffffff;
    }

    .header-mobile-login .header-login-icon {
        width: 17px;
        height: 17px;
    }

    .header-mobile-login .header-login-icon svg {
        stroke: #ffffff;
    }

    .header-mobile-login .header-login-text {
        font-size: 18px;
        font-weight: 300;
        font-family: 'Helvetica', sans-serif;
    }

    /* Navigation menu - hidden by default, shown when burger clicked */
    .header-nav {
        width: 92vw;
        max-width: 420px;
        margin: 0 auto;
        margin-top: 0rem;
        display: none;
        position: fixed;
        top: 35px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 0;
        min-height: 200px;
        height: auto;
        background: #18181c;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 28px 24px;
        padding-bottom: 40px;
        border-radius: 20px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        will-change: scroll-position;
    }

    /* Dark theme - card gradient (no blue) */
    .dark .header-nav {
        background: linear-gradient(145deg, #1a1a20 0%, #18181c 50%, #16161a 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 25px 70px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Light theme menu - card gradient */
    body:not(.dark) .header-nav {
        background: linear-gradient(145deg, #f4f5f7 0%, #f8f9fa 50%, #f0f1f3 100%);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 
            0 25px 70px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .header-nav__list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 24px;
        align-items: flex-start;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body:not(.dark) .header-nav__list {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .header-nav__link {
        color: rgba(255, 255, 255, 0.95);
        font-size: 1.06rem;
        font-weight: 500;
        padding: 14px 18px;
        border-radius: 14px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        letter-spacing: 0.01em;
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        position: relative;
        margin-bottom: 2px;
    }

    body:not(.dark) .header-nav__link {
        color: rgba(0, 0, 0, 0.9);
    }

    .header-nav__link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #3bc77e;
        transform: translateX(6px);
        box-shadow: 0 2px 8px rgba(59, 199, 126, 0.15);
    }

    body:not(.dark) .header-nav__link:hover {
        background: rgba(42, 186, 169, 0.08);
        color: #2abaa9;
        box-shadow: 0 2px 8px rgba(42, 186, 169, 0.2);
    }

    .header-nav__link.active {
        background: linear-gradient(135deg, rgba(59, 199, 126, 0.2) 0%, rgba(42, 186, 169, 0.15) 100%);
        color: #3bc77e;
        font-weight: 600;
        border-left: 4px solid #3bc77e;
        padding-left: 14px;
        box-shadow: 0 2px 12px rgba(59, 199, 126, 0.2);
    }

    body:not(.dark) .header-nav__link.active {
        background: linear-gradient(135deg, rgba(42, 186, 169, 0.18) 0%, rgba(59, 199, 126, 0.12) 100%);
        color: #2abaa9;
        border-left-color: #2abaa9;
        box-shadow: 0 2px 12px rgba(42, 186, 169, 0.25);
    }

    .header-nav.active {
        display: block !important;
        transform: translateX(-50%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: slideDown 0.3s ease-out;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }

    /* Hide desktop elements on mobile */
    .header-desktop-only {
        display: none !important;
    }

    /* Mobile-only elements shown in burger menu */
    .header-mobile-only {
        display: block !important;
        margin-top: 20px;
        padding-bottom: 20px;
    }

    .header-mobile-only.header-mobile-extra {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 24px;
        margin-top: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    body:not(.dark) .header-mobile-only.header-mobile-extra {
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .header-mobile-only .header-dropdown__list,
    .header-mobile-only .header-dropdown__list--mobile-open {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 0;
        pointer-events: auto;
    }

    /* User info section */
    .header-dropdown__list-info {
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.875rem;
        margin-bottom: 12px;
        font-weight: 400;
        text-align: left;
    }

    body:not(.dark) .header-dropdown__list-info {
        color: rgba(0, 0, 0, 0.65);
    }

    .header-dropdown__list-info .email {
        color: #3bc77e;
        font-weight: 600;
        font-size: 1rem;
        margin-top: 6px;
        display: block;
        text-shadow: 0 0 20px rgba(59, 199, 126, 0.3);
    }

    body:not(.dark) .header-dropdown__list-info .email {
        color: #2abaa9;
        text-shadow: 0 0 20px rgba(42, 186, 169, 0.2);
    }

    /* Settings dropdown links */
    .settings-dropdown__list-link {
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-radius: 12px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body:not(.dark) .settings-dropdown__list-link {
        color: rgba(0, 0, 0, 0.9);
    }

    .settings-dropdown__list-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #3bc77e;
        transform: translateX(6px);
        box-shadow: 0 2px 8px rgba(59, 199, 126, 0.15);
    }

    body:not(.dark) .settings-dropdown__list-link:hover {
        background: rgba(42, 186, 169, 0.08);
        color: #2abaa9;
        box-shadow: 0 2px 8px rgba(42, 186, 169, 0.2);
    }

    .settings-dropdown__list-link .header-dropdown__list-title {
        padding: 0;
        margin: 0;
        font-size: 0.95rem;
        font-weight: 500;
    }

    /* Language switcher section */
    .theme-switcher {
        margin-top: 28px;
        padding-top: 24px;
        padding-bottom: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    body:not(.dark) .theme-switcher {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .theme-switcher h3 {
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.8rem;
        margin-bottom: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    body:not(.dark) .theme-switcher h3 {
        color: rgba(0, 0, 0, 0.65);
    }

    .item-language {
        color: rgba(255, 255, 255, 0.95);
        font-size: 0.98rem;
        padding: 12px 16px;
        border-radius: 12px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        text-align: left;
        margin-bottom: 6px;
        cursor: pointer;
    }

    body:not(.dark) .item-language {
        color: #fff;
    }

    .item-language:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #3bc77e;
        transform: translateX(6px);
        box-shadow: 0 2px 8px rgba(59, 199, 126, 0.15);
    }

    body:not(.dark) .item-language:hover {
        background: rgba(42, 186, 169, 0.08);
        color: #2abaa9;
        box-shadow: 0 2px 8px rgba(42, 186, 169, 0.2);
    }

    .item-language__active {
        color: #3bc77e;
        font-weight: 600;
        background: linear-gradient(135deg, rgba(59, 199, 126, 0.2) 0%, rgba(42, 186, 169, 0.15) 100%);
        border-left: 4px solid #3bc77e;
        padding-left: 12px;
        box-shadow: 0 2px 12px rgba(59, 199, 126, 0.2);
    }

    body:not(.dark) .item-language__active {
        color: #2abaa9;
        background: linear-gradient(135deg, rgba(42, 186, 169, 0.18) 0%, rgba(59, 199, 126, 0.12) 100%);
        border-left-color: #2abaa9;
        box-shadow: 0 2px 12px rgba(42, 186, 169, 0.25);
    }

    /* Custom scrollbar for menu */
    .header-nav::-webkit-scrollbar {
        width: 8px;
    }

    .header-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        margin: 8px 0;
    }

    body:not(.dark) .header-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03);
    }

    .header-nav::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(59, 199, 126, 0.4) 0%, rgba(42, 186, 169, 0.4) 100%);
        border-radius: 10px;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

    .header-nav::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(59, 199, 126, 0.6) 0%, rgba(42, 186, 169, 0.6) 100%);
        background-clip: padding-box;
    }

    body:not(.dark) .header-nav::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(42, 186, 169, 0.4) 0%, rgba(59, 199, 126, 0.4) 100%);
        background-clip: padding-box;
    }

    body:not(.dark) .header-nav::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(42, 186, 169, 0.6) 0%, rgba(59, 199, 126, 0.6) 100%);
        background-clip: padding-box;
    }

    /* Firefox scrollbar */
    .header-nav {
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 199, 126, 0.4) rgba(255, 255, 255, 0.03);
    }

    body:not(.dark) .header-nav {
        scrollbar-color: rgba(42, 186, 169, 0.4) rgba(0, 0, 0, 0.03);
    }

    /* Prevent body scroll when menu is open */
    body.mobile-nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Light theme adjustments for mobile header */
    body:not(.dark) .header-mobile-language .language-text,
    body:not(.dark) .header-mobile-language .language-arrow,
    body:not(.dark) .header-mobile-language .header-dropdown__icon-color {
        color: #101010 !important;
        stroke: #101010 !important;
        fill: #101010 !important;
    }

    body:not(.dark) .header-mobile-theme .theme-toggle-wrapper {
        background: #ffffff !important;
    }

    body:not(.dark) .header-mobile-theme .theme-toggle-btn {
        color: #101010 !important;
    }

    body:not(.dark) .header-mobile-theme .theme-toggle-btn svg {
        stroke: #101010 !important;
    }

    body:not(.dark) .header-mobile-theme .theme-toggle-btn-sun {
        background: #eee !important;
        opacity: 1 !important;
    }

    body:not(.dark) .header-mobile-theme .theme-toggle-btn-moon {
        background: transparent !important;
        opacity: 0.5 !important;
    }

    body:not(.dark) .header-mobile-login {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.05) 100%) !important;
        color: #101010 !important;
    }

    body:not(.dark) .header-mobile-login .header-login-icon svg {
        stroke: #101010 !important;
    }

    body:not(.dark) .header-btn span {
        background: #101010 !important;
    }
}

@media (min-width: 1025px) {
    /* Hide mobile header elements on desktop */
    .header-mobile-only,
    .header-mobile-language,
    .header-mobile-theme,
    .header-mobile-login,
    .header__row-top,
    .header__row-bottom,
    .header__row-right-mobile {
        display: none !important;
    }

    /* Show desktop header structure */
    .header__row-left {
        display: flex !important;
    }

    .header__row-right {
        display: flex !important;
    }

    /* Restore desktop header styles */
    .header-section .header__row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 !important;
        height: 54px !important;
        width: 100% !important;
        max-width: 1600px !important;
        margin: 0 auto !important;
    }

    .header-section,
    .header-section.header {
        padding: 10px 120px 10px 120px !important;
    }
}
/* Specific padding for 1250px-1300px range */
@media screen and (min-width: 1550px) and (max-width: 1760px) {
    .header.header-section {
        padding: 10px 60px 10px 60px !important;
    }
}
/* Article content wrapper - align with header */
.article-content-wrapper {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive article content wrapper to match header */
@media screen and (max-width: 1600px) {
    .article-content-wrapper {
        padding: 0 120px !important;
    }
}

@media screen and (max-width: 1400px) {
    .article-content-wrapper {
        padding: 0 90px !important;
    }
}

@media screen and (max-width: 1200px) {
    .article-content-wrapper {
        padding: 0 60px !important;
    }
}

@media screen and (max-width: 768px) {
    .article-content-wrapper {
        padding: 0 20px !important;
    }
}

/* Responsive article page containers */
@media screen and (min-width: 1450px) and (max-width: 1549px) {
    .articles-page-container {
        max-width: 1290px !important;
    }
}

@media screen and (min-width: 1400px) and (max-width: 1449px) {
    .articles-page-container {
        max-width: 1200px !important;
    }
}

@media screen and (min-width: 1300px) and (max-width: 1399px) {
    .articles-page-container {
        max-width: 1150px !important;
    }
}

@media screen and (min-width: 1250px) and (max-width: 1299px) {
    .articles-page-container {
        max-width: 1060px !important;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1249px) {
    .articles-page-container {
        max-width: 985px !important;
    }
}

@media screen and (min-width: 1500px) and (max-width: 1549px) {
    .articles-grid {
        grid-template-columns: repeat(4, 316px) !important;
        justify-content: center;
    }
    .article-card {
        width: 316px !important;
    }
    .header.header-section {
        padding: 10px 120px 10px 120px !important;
    }
}
@media screen and (min-width: 1350px) and (max-width: 1449px) {
    .articles-grid {
        grid-template-columns: repeat(4, 285px) !important;
        justify-content: center;
    }
    .article-card {
        width: 285px !important;
        height: 260px !important;
    }
    .article-card__content {
        top: 165px !important;
        width: 100% !important;
        left: 15px !important;
    }
    .article-card__image {
        height: 140px !important;
    }
    .header.header-section {
        padding: 10px 120px 10px 120px !important;
    }
}
@media screen and (min-width: 1250px) and (max-width: 1300px) {
    .header.header-section {
        padding: 10px 110px 10px 110px !important;
    }
}
@media (max-width: 576px) {
    .header-section .header__row {
        padding: 0 !important;
    }
    .header-section .header__row {
        padding: 0 !important;
    }
    .header__row-right-mobile {
        margin-left: 20px !important;
    }
}
/* Header background and text colors for light theme */
body:not(.dark) .header-section {
    background-color: #f4f5f7 !important;
}

body:not(.dark) .header-nav__list a {
    color: #101010 !important;
}


/* Logo - make it dark for light theme */
body:not(.dark) .header-logo img.main-logo {
    filter: brightness(0) !important;
}

/* Language selector - white background with dark text for light theme */
body:not(.dark) .language-toggle-btn {
    color: #101010 !important;
    background: transparent !important;
}

body:not(.dark) .language-toggle-btn .header-dropdown__icon {
    background: transparent !important;
}

body:not(.dark) .language-toggle-btn .header-dropdown__icon-color {
    stroke: #101010 !important;
    /* fill: #101010 !important; */
}

body:not(.dark) .language-toggle-btn .language-text {
    color: #101010 !important;
}

body:not(.dark) .language-toggle-btn .language-arrow {
    color: #101010 !important;
}

body:not(.dark) .language-toggle-btn .language-arrow svg {
    stroke: #101010 !important;
}

/* Theme toggle wrapper - white background for light theme */
body:not(.dark) .theme-toggle-wrapper {
    background: #ffffff !important;
}

/* Theme toggle buttons - proper styling for light theme */
body:not(.dark) .theme-toggle-btn {
    color: #101010 !important;
}

body:not(.dark) .theme-toggle-btn svg {
    stroke: #101010 !important;
}

/* Active button (sun) in light theme - light gray background */
body:not(.dark) .theme-toggle-btn-sun.active,
body:not(.dark) .theme-toggle-btn-sun {
    background-color: #eee !important;
    color: #101010 !important;
    opacity: 1 !important;
}

/* Inactive button (moon) in light theme - transparent */
body:not(.dark) .theme-toggle-btn-moon {
    background-color: transparent !important;
    color: #101010 !important;
    opacity: 0.5 !important;
}

body:not(.dark) .theme-toggle-btn-moon svg {
    stroke: #101010 !important;
    opacity: 0.5 !important;
}

/* Desktop Theme Toggle Wrapper */
.theme-toggle-wrapper {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-radius: 50px !important;
    padding: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.theme-toggle-btn {
    width: 30px !important;
    height: 30px !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.theme-toggle-btn svg {
    width: 17px !important;
    height: 17px !important;
    transition: opacity 0.3s ease !important;
}

/* Active state (dark mode - moon button) */
body.dark .theme-toggle-btn-moon,
.theme-toggle-btn-moon.active {
    background-color: #000000 !important;
    color: rgba(255, 255, 255, 1) !important;
}

/* Inactive state (dark mode - sun button) */
body.dark .theme-toggle-btn-sun {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 0.5 !important;
}

/* Active state (light mode - sun button) */
body:not(.dark) .theme-toggle-btn-sun,
.theme-toggle-btn-sun.active {
    background-color: #eee !important;
    color: #101010 !important;
    opacity: 1 !important;
}

/* Desktop Login Button */
.header-login-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 5px 20px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    font-family: 'Helvetica', sans-serif !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.header-login-btn .header-login-icon {
    width: 17px !important;
    height: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: #ffffff !important;
}

.header-login-btn .header-login-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: #ffffff !important;
}

.header-login-btn .header-login-text {
    white-space: nowrap !important;
    color: #ffffff !important;
}

.header-login-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.15) 42.308%, rgba(255, 255, 255, 0.08) 100%) !important;
}

/* Light theme login button */
body:not(.dark) .header-login-btn {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 42.308%, rgba(0, 0, 0, 0.05) 100%) !important;
    color: #000000 !important;
}

body:not(.dark) .header-login-btn .header-login-icon {
    color: #000000 !important;
}

body:not(.dark) .header-login-btn .header-login-icon svg {
    stroke: #000000 !important;
}

body:not(.dark) .header-login-btn .header-login-text {
    color: #000000 !important;
}

/* CTA Banner Styles - Matching Home Page */
.article-cta-banner.article-cta-banner {
    position: relative !important;
    padding: 40px 50px 40px 110px !important;
    background: no-repeat;
    border-radius: 50px !important;
    margin: 0px auto 10px auto !important;
    width: 100% !important;
    max-width: 1820px !important;
    overflow: hidden !important;
    min-height: max-content !important;
    display: flex !important;
    background: radial-gradient(111% 94% at 79% 11%, #018f7a 25%, #030712 100%)
}

.article-cta-banner::before {
    content: '' !important;
    position: absolute !important;
    top: -0px !important;
    right: -50px !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("/images/coins/mobileOnRock.png") !important;
    background-size: contain !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.article-cta-banner__content {
    max-width: 1057px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    z-index: 2 !important;
    position: relative !important;
}

.article-cta-banner__title {
    max-width: 400px !important;
    font-family: 'Helvetica', sans-serif !important;
    font-weight: 300 !important;
    font-size: 40px !important;
    line-height: 1 !important;
    background: linear-gradient(180deg, #dedede 73.358%, #010000 123.05%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
}

/* Light theme banner title */
body:not(.dark) .article-cta-banner__title {
    /* background: linear-gradient(168.643deg, #1F1F1F 43.889%, #5C5C5C 66.083%) !important; */
    background: linear-gradient(180deg, #dedede 73.358%, #010000 123.05%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.article-cta-banner__title .title-italic {
    font-style: italic !important;
}

.article-cta-banner__title .title-gradient {
    background: linear-gradient(90deg, #2abaa9 0%, #25d69b 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.article-cta-banner__text {
    font-family: 'Helvetica', sans-serif !important;
    font-weight: 300 !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    max-width: 540px !important;
    margin: 0 !important;
}

/* Light theme banner text */
body:not(.dark) .article-cta-banner__text {
    color: #828282 !important;
}

.article-cta-banner__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 40px !important;
    border-radius: 50px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 42.308%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: #ffffff !important;
    font-family: 'Helvetica', sans-serif !important;
    font-weight: 300 !important;
    font-size: 20px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    width: fit-content !important;
}

/* Light theme banner button */
body:not(.dark) .article-cta-banner__button {
    background: linear-gradient(90deg, #2abaa9 0%, #25d69b 100%) !important;
    color: #ffffff !important;
}

/* Responsive adjustments for banner width */
/* Responsive adjustments for banner width */
@media screen and (max-width: 2140px) {
    .article-cta-banner.article-cta-banner {
        width: calc(100% - 310px) !important;
        max-width: 1820px !important;
    }
}

@media screen and (max-width: 1820px) {
    .article-cta-banner.article-cta-banner {
        width: calc(100% - 60px) !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .article-cta-banner.article-cta-banner {
        width: calc(100% - 32px) !important;
        margin: 80px 16px 20px 16px !important;
        padding: 40px 20px !important;
    }
}
@media screen and (max-width: 1300px) {
    .article-cta-banner__title {
        font-size: 30px !important;
    }
    .article-cta-banner__text {
        font-size: 18px !important;
        max-width: 515px !important;
    }
    .article-cta-banner__button {
        font-size: 18px !important;
        padding: 20px 40px !important;
    }
}
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .article-cta-banner {
        width: calc(100% - 32px) !important;
        margin: 80px 16px 20px 16px !important;
        padding: 40px 20px !important;
    }
}

/* Mobile CTA Banner - Figma Design Exact Match */
@media screen and (max-width: 768px) {
    .article-cta-banner {
        margin: 80px 16px 20px 16px !important;
        padding: 0 !important;
        height: 650px !important;
        min-height: 650px !important;
        max-height: 650px !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        position: relative !important;
        width: calc(100% - 32px) !important;
        max-width: 100% !important;
        display: block !important;
        margin-bottom: 20px !important;
    }

    .article-cta-banner::before {
        right: 0px !important;
        background-size: 120% !important;
        background-position: bottom center !important;
    }

    .article-cta-banner__content {
        padding: 0 !important;
        gap: 10px !important;
        width: calc(100% - 50px) !important;
        max-width: 303px !important;
        margin: 0 auto !important;
        position: absolute !important;
        top: 30px !important;
        left: 25px !important;
        right: 25px !important;
        transform: none !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 2 !important;
    }

    .article-cta-banner__title {
        font-size: 30px !important;
        line-height: 1 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .article-cta-banner__text {
        font-size: 16px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        width: 265px !important;
        max-width: 265px !important;
        margin: 0 auto !important;
    }

    .article-cta-banner__button {
        width: 255px !important;
        padding: 20px 30px !important;
        font-size: 18px !important;
        margin: 0 !important;
        position: absolute !important;
        top: 200px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 480px) {
    .article-cta-banner {
        width: calc(100% - 32px) !important;
        max-width: 100% !important;
        margin: 80px 16px 20px 16px !important;
        height: 650px !important;
        min-height: 650px !important;
        max-height: 650px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .article-cta-banner::before {
        left: 0 !important;
        right: auto !important;
        background-image: url("/images/coins/mobileOnRock.png") !important;
        background-size: 120% !important;
        background-position: bottom center !important;
        width: 100% !important;
    }

    .article-cta-banner__content {
        width: calc(100% - 50px) !important;
        max-width: 303px !important;
        top: 30px !important;
    }

    .article-cta-banner__text {
        width: 100% !important;
        max-width: 100% !important;
    }

    body:not(.dark) .article-cta-banner__text {
        color: #ffffff !important;
    }

    .article-cta-banner__button {
        width: 192px !important;
        padding: 15px 20px !important;
        font-size: 18px !important;
        top: 189px !important;
    }
}

/* Footer Override - Remove background image, margin-top, and set proper background colors */
.section-footer {
    background-color: #121722 !important;
    margin-top: 0 !important;
    background-image: none !important;
    background-size: unset !important;
    padding: 1rem;
}

body:not(.dark) .section-footer {
    background-color: #f4f5f7 !important;
    color: #101010 !important;
}

body:not(.dark) .section-footer * {
    color: #101010 !important;
}

body:not(.dark) .section-footer .footer-logo img {
    filter: brightness(0) !important;
}

/* Mobile Footer - Figma Design Exact Match */
@media screen and (max-width: 768px) {
    .section-footer {
        padding: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
    }

    .section-footer .max-w-screen-2xl {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .section-footer .footer {
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        align-items: flex-start !important;
        position: relative !important;
    }

    /* Footer Top: Logo + Social Icons - Figma positions */
    .section-footer .footer-left {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 0 !important;
        position: relative !important;
    }

    .section-footer .footer-logo {
        margin-bottom: 0 !important;
        width: auto !important;
        margin-top: 0 !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    .section-footer .footer-logo img {
        width: 111px !important;
        height: 44px !important;
        display: block !important;
        object-fit: contain !important;
    }

    .section-footer .footer-social-icons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin-top: 0 !important;
        align-items: center !important;
        position: relative !important;
        margin-left: auto !important;
    }

    .section-footer .footer-social-icon {
        width: 24px !important;
        height: 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .section-footer .footer-social-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Footer Right - Navigation Columns - Figma exact positions */
    .section-footer .footer-right {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 50px !important;
        display: block !important;
        flex: none !important;
        position: relative !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 30px !important;
    }

    .section-footer .footer-right__navigation {
        display: block !important;
        width: 100% !important;
        position: relative !important;
    }

    /* All footer items reset with Figma positions */
    .section-footer .footer-right__item {
        width: 168px !important;
        margin-right: 0 !important;
        display: inline-block !important;
        position: relative !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        vertical-align: top !important;
    }

    /* Contact - left: 16px, side by side with Exchange */
    .section-footer .footer-right__item:nth-child(1) {
        margin-right: 16px !important;
        width: 168px !important;
    }

    /* Exchange - left: 192px (16px + 168px + 8px), side by side with Contact */
    .section-footer .footer-right__item:nth-child(2) {
        margin-right: 0 !important;
        width: 168px !important;
    }

    /* Legal - left: 16px, below Contact (new row) */
    .section-footer .footer-right__item:nth-child(3) {
        margin-top: 20px !important;
        margin-right: 16px !important;
        width: 168px !important;
        clear: left !important;
    }

    /* Reviews - left: 16px, below Legal */
    .section-footer .footer-right__item:nth-child(4) {
        margin-top: 20px !important;
        margin-right: 0 !important;
        width: 168px !important;
        clear: left !important;
    }

    /* Footer Item Headings */
    .section-footer .footer-right__item h4 {
        font-family: 'Helvetica', sans-serif !important;
        font-style: italic !important;
        font-weight: 300 !important;
        font-size: 18px !important;
        line-height: normal !important;
        color: rgba(255, 255, 255, 0.7) !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
    }

    body:not(.dark) .section-footer .footer-right__item h4 {
        color: rgba(16, 16, 16, 0.7) !important;
    }

    /* Footer Links */
    .section-footer .footer-right__item ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-footer .footer-right__item ul li {
        margin-bottom: 10px !important;
    }

    .section-footer .footer-right__item ul li a {
        font-family: 'Helvetica', sans-serif !important;
        font-weight: 300 !important;
        font-size: 15px !important;
        line-height: normal !important;
        color: #ffffff !important;
        text-decoration: none !important;
        display: block !important;
    }

    body:not(.dark) .section-footer .footer-right__item ul li a {
        color: #101010 !important;
    }

    /* Trustpilot Section */
    .section-footer .footer-trustpilot {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .section-footer .trustpilot-logo {
        width: 124px !important;
        height: 70px !important;
    }

    .section-footer .trustpilot-logo svg {
        width: 124px !important;
        height: 70px !important;
    }
}