*:focus,
*:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
html {
    color-scheme: light dark;
}
.nav-logo {
    color: #111;
    transition: filter 0.25s ease, color 0.25s ease;
}
.nav-logo svg path {
    fill: currentColor;
}
@media (prefers-color-scheme: dark) {
    html {
        filter: invert(1) hue-rotate(180deg);
    }
    video,
    iframe,
    canvas,
    img:not(.nav-logo):not(.logo-icon):not(.social-icon-img):not(.wizard-ui-icon):not(.footer-socials img),
    .broker-icon,
    .broker-logo {
        filter: invert(1) hue-rotate(180deg);
    }
    .nav-logo,
    .logo-icon.nav-logo {
        filter: none;
    }
    .nav-logo {
        color: #f5f5f7;
    }
}
.header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease-in-out, border-bottom 0.3s ease-in-out;
}
.header.scrolled {
    background-color: rgba(245, 245, 245, 0.8);
    border-bottom-color: var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-dark);
}
.logo-icon path:nth-child(2) {
    stroke: var(--color-light);
}
.main-nav {
    display: none;
}
@media (min-width: 992px) {

 .main-nav {
    display: flex;
    gap: 2rem;
    height: 100%;
    align-items: center;
}
 }
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}
.nav-trigger:hover, .nav-item:hover .nav-trigger {
    color: var(--color-text-primary);
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 0.5rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    margin-top: 10px;
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    display: block;
}
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.nav-dropdown-inner {
    padding: 0.5rem;
}
.nav-group-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-left: 12px;
}
.nav-link {
    display: block;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}
.nav-link:hover {
    background-color: rgba(0,0,0,0.04);
}
.header-actions {
    display: none;
}
@media (min-width: 768px) {
 .header-actions {
    display: flex;
    gap: 12px;
}
    .footer-bottom {
    display: grid;
    grid-template-columns: var(--footer-logo-col) var(--footer-links-col);
    column-gap: var(--footer-columns-gap);
    align-items: baseline;
    justify-content: stretch;
}
    .footer-bottom-right {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 0;
    justify-self: start;
    transform: translateX(var(--footer-bottom-right-offset-x));
}
    .footer-socials {
    transform: translateY(var(--footer-socials-offset-y));
}
    .footer-bottom-right .lang-switcher {
    grid-column: 1;
    justify-self: start;
}
    .footer-bottom-right .footer-socials {
    grid-column: 2 / -1;
    justify-self: end;
}
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}
.btn-primary {
    background-color: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}
.btn-primary:hover {
    background-color: var(--color-dark);
    transform: scale(1.05);
}
.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    border-color: var(--color-dark);
    background-color: transparent;
}
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    z-index: 1001;
    width: 24px;
    height: 24px;
    position: relative;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span:first-child {
    top: 6px;
}
.mobile-menu-toggle span:last-child {
    bottom: 6px;
}
.mobile-menu-toggle.open span {
    background-color: var(--color-text-primary);
}
.mobile-menu-toggle.open span:first-child {
    top: 11px;
    transform: rotate(45deg);
}
.mobile-menu-toggle.open span:last-child {
    bottom: 11px;
    transform: rotate(-45deg);
}


.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.mobile-menu nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
}
.mobile-menu-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
}
@media (min-width: 992px) {
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }
}
.footer {
    background-color: var(--color-white);
    padding: 60px 0;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    --footer-logo-col: minmax(220px, 1fr);
    --footer-links-col: 2fr;
    --footer-columns-gap: 3rem;
    --footer-bottom-right-offset-x: 0px;
    --footer-bottom-right-gap: 6.6rem;
    --footer-socials-offset-y: 6px;
    --footer-lang-mobile-offset-y: -3px;
    --footer-links-right-offset: 2rem;
}
.footer .container {
    max-width: 1280px;
}
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media(min-width: 768px) {
    .footer-top {
        display: grid;
        grid-template-columns: var(--footer-logo-col) var(--footer-links-col);
        column-gap: var(--footer-columns-gap);
        align-items: start;
    }
}
.footer-logo .logo-icon path:nth-child(2) {
    stroke: var(--color-light);
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media(min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(3, max-content);
        column-gap: 4rem;
        justify-content: end;
        justify-self: end;
        width: max-content;
        margin-left: auto;
        margin-right: var(--footer-links-right-offset);
    }
}
.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    text-transform: none;
}
.footer-links a, .footer-socials a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.footer-links a:hover, .footer-socials a:hover {
    color: var(--color-text-primary);
}
.footer-slogan {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 0rem;
    margin-bottom: 0;
}
.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-bottom-right {
    display: flex;
    align-items: baseline;
    gap: var(--footer-bottom-right-gap);
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    align-items: center;
}
.footer-socials a {
    display: flex;
    align-items: center;
}
.footer-socials a img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.footer-socials a:hover img {
    opacity: 1;
}
.section-before-footer {
    padding-bottom: 10rem;
}
.footer-disclaimer {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
}
.footer-disclaimer p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: none;
    margin: 0 auto;
    text-align: center;
}
.footer-disclaimer a {
    text-decoration: underline;
    font-weight: 500;
    color: var(--color-text-secondary);
}
.footer-disclaimer a:hover {
    color: var(--color-text-primary);
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-logo .logo-image {
    height: 40px;
    width: auto;
}

.lang-switcher {
    position: relative;
    transform: translateX(var(--footer-lang-align-x, 0px));
}
.lang-switcher__button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: inherit;
    font-weight: 600;
    transition: color 0.2s ease;
    cursor: pointer;
}
.lang-switcher__label {
    font-size: inherit;
    line-height: 1;
}
.lang-switcher__button:hover {
    color: var(--color-text-primary);
}
.lang-switcher__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.lang-switcher__menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    min-width: 140px;
    display: grid;
    gap: 2px;
    padding: 0.5rem;
    border-radius: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 50;
}
.lang-switcher__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
}
.lang-switcher__option:hover {
    background-color: rgba(0,0,0,0.04);
}
.lang-switcher__option.is-active {
    background: rgba(15, 20, 30, 0.08);
    font-weight: 700;
}
.lang-switcher.open .lang-switcher__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lang-switcher.open .lang-switcher__chevron {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        text-align: center;
    }
    .footer-bottom-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .lang-switcher__menu {
        right: auto;
        left: 0;
    }
    .lang-switcher__button {
        transform: translateY(var(--footer-lang-mobile-offset-y));
    }
    .footer {
        --footer-bottom-right-gap: -20px;
        --footer-lang-mobile-offset-y: -0px;
    }
}

@media (min-width: 768px) {
    .footer-bottom {
        display: grid;
        grid-template-columns: var(--footer-logo-col) var(--footer-links-col);
        column-gap: var(--footer-columns-gap);
        align-items: baseline;
        justify-content: stretch;
    }
    .footer-bottom-right {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 2rem;
        row-gap: 0;
        justify-self: start;
        transform: translateX(var(--footer-bottom-right-offset-x));
    }
    .footer-socials {
        transform: translateY(var(--footer-socials-offset-y));
    }
    .footer-bottom-right .lang-switcher {
        grid-column: 1;
        justify-self: start;
    }
    .footer-bottom-right .footer-socials {
        grid-column: 2 / -1;
        justify-self: end;
    }
}

.footer {
    width: 100% !important;
    background-color: var(--color-white) !important;
    padding: 60px 0 !important;
    border-top: 1px solid var(--color-border) !important;
    display: block !important;
}

.footer .container {
    max-width: 1280px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    display: block !important;
}

.cookie-banner { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 580px; width: calc(100% - 48px); background-color: var(--color-white); color: var(--color-dark); padding: 20px 24px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); z-index: 9999; display: none; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-banner.show { display: flex; animation: slide-up 0.5s ease-out forwards; }
@keyframes slide-up { from { transform: translate(-50%, 60px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.cookie-banner .cookie-text { font-size: 0.9rem; margin: 0; max-width: 100%; font-weight: 500; line-height: 1.5; color: var(--color-text-primary);}
.cookie-banner .cookie-text a { font-weight: 700; text-decoration: underline; color: var(--color-text-primary); }
.cookie-actions { display: flex; gap: 12px; justify-content: flex-end; flex-shrink: 0; }
.cookie-btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 700; font-size: 0.9rem; transition: all 0.2s ease; }
.cookie-btn.accept { background-color: var(--color-dark); color: var(--color-white); }
.cookie-btn.decline { background-color: var(--color-light); color: var(--color-text-primary); border: 1px solid var(--color-light); }

.cookie-btn {
    transition: all 0.2s ease-in-out;
}

.cookie-btn.accept:hover {
    background-color: var(--color-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cookie-btn.decline:hover {
    background-color: var(--color-border);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.flash {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.flash.flash-error {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--color-red);
    /* border: 1px solid var(--color-red); */
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.05);
}

.flash.flash-success {
    background-color: rgba(40, 167, 69, 0.08);
    color: var(--color-green);
    /* border: 1px solid var(--color-green); */
}

.flash.flash-info {
    background-color: rgba(136, 136, 136, 0.10);
    color: var(--color-text-secondary);
    /* border: 1px solid var(--color-border); */
}

.flash.flash-warning {
    background-color: rgba(212, 163, 115, 0.18);
    color: var(--color-special-accent);
    /* border: 1px solid var(--color-special-accent); */
}

.twofa-code-inputs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-start;
}

.twofa-code-inputs input {
    width: 44px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    outline: none;
    caret-color: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.twofa-code-inputs input:focus {
    border-color: var(--color-dark);
    box-shadow: 0 0 0 4px rgba(26, 24, 23, 0.08);
}

.twofa-code-inputs input:disabled {
    opacity: 0.65;
    background: var(--color-light);
    cursor: not-allowed;
}

.twofa-feedback {
    margin-top: 0.6rem;
    min-height: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.4;
}
.twofa-feedback.error {
    color: var(--color-red);
}
.twofa-feedback.success {
    color: var(--color-green);
}

.tooltip-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--color-border);
    color: var(--color-text-secondary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translate(
        calc(-50% + var(--mobile-tooltip-shift-x, 0px)),
        var(--mobile-tooltip-shift-y, 0px)
    );
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    pointer-events: none;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .tooltip-text {
        max-width: calc(100vw - 24px);
        overflow-wrap: anywhere;
    }
}

.tooltip-text::after {
    display: none !important;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.scrollbar-soft {
    --thumb-color: rgba(0, 0, 0, 0);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.scrollbar-soft:hover {
    --thumb-color: var(--color-border);
    scrollbar-color: var(--color-border) transparent;
}

.scrollbar-soft::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-soft::-webkit-scrollbar-thumb {
    background-color: var(--thumb-color) !important;
    border-radius: 10px;
    background-clip: padding-box;
    transition: background-color 0.3s ease;
}

.scrollbar-soft::-webkit-scrollbar-track {
    background: transparent;
}
