:root[data-theme='dark'] {
    color-scheme: dark;
}

:root[data-theme='dark'] body {
    background: #0b1220 !important;
    color: #e5e7eb !important;
}

:root[data-theme='dark'] #__nuxt,
:root[data-theme='dark'] #app {
    background: #0b1220 !important;
    color: #e5e7eb !important;
}

:root[data-theme='dark'] header,
:root[data-theme='dark'] main,
:root[data-theme='dark'] footer,
:root[data-theme='dark'] section,
:root[data-theme='dark'] article,
:root[data-theme='dark'] .container,
:root[data-theme='dark'] .header,
:root[data-theme='dark'] .box,
:root[data-theme='dark'] .card,
:root[data-theme='dark'] .tariff-card,
:root[data-theme='dark'] .nord-container,
:root[data-theme='dark'] .bg-white,
:root[data-theme='dark'] .tw-bg-white,
:root[data-theme='dark'] [class*='bg-white'],
:root[data-theme='dark'] .tw-bg-light-400,
:root[data-theme='dark'] .bg-light-400,
:root[data-theme='dark'] .download-button,
:root[data-theme='dark'] .download-buttons-wrapper,
:root[data-theme='dark'] .download-buttons-grid,
:root[data-theme='dark'] [style*='background: white'],
:root[data-theme='dark'] [style*='background:white'],
:root[data-theme='dark'] [style*='background-color: white'],
:root[data-theme='dark'] [style*='background-color:white'],
:root[data-theme='dark'] [style*='background: #fff'],
:root[data-theme='dark'] [style*='background:#fff'],
:root[data-theme='dark'] [style*='background-color: #fff'],
:root[data-theme='dark'] [style*='background-color:#fff'],
:root[data-theme='dark'] [style*='background: rgb(255, 255, 255)'],
:root[data-theme='dark'] [style*='background-color: rgb(255, 255, 255)'] {
    background: #111827 !important;
    color: #e5e7eb !important;
}

:root[data-theme='dark'] [style*='background: linear-gradient(135deg, #f8f9ff'],
:root[data-theme='dark'] [style*='background: linear-gradient(135deg, #e3f2fd'],
:root[data-theme='dark'] [style*='background: linear-gradient(135deg, #f0f9ff'],
:root[data-theme='dark'] [style*='background: linear-gradient(135deg, #fff9e6'],
:root[data-theme='dark'] [style*='background: linear-gradient(90deg, #ffffff'],
:root[data-theme='dark'] [style*='background: #f'],
:root[data-theme='dark'] [style*='background-color: #f'] {
    background: #111827 !important;
}

:root[data-theme='dark'] [class*='text-dark'],
:root[data-theme='dark'] [class*='text-secondary'],
:root[data-theme='dark'] .text-black,
:root[data-theme='dark'] .text-grey-darkest,
:root[data-theme='dark'] .text-grey-dark,
:root[data-theme='dark'] p,
:root[data-theme='dark'] h1,
:root[data-theme='dark'] h2,
:root[data-theme='dark'] h3,
:root[data-theme='dark'] h4,
:root[data-theme='dark'] h5,
:root[data-theme='dark'] h6,
:root[data-theme='dark'] label,
:root[data-theme='dark'] span,
:root[data-theme='dark'] li {
    color: #f3f4f6 !important;
}

:root[data-theme='dark'] [class*='text-gray'],
:root[data-theme='dark'] [class*='text-slate'],
:root[data-theme='dark'] [class*='text-zinc'],
:root[data-theme='dark'] [class*='text-neutral'] {
    color: #e5e7eb !important;
}

:root[data-theme='dark'] .download-button-label,
:root[data-theme='dark'] .download-button-title,
:root[data-theme='dark'] .download-button-icon {
    color: #f3f4f6 !important;
}

:root[data-theme='dark'] .vpn-instructions-wrapper,
:root[data-theme='dark'] .vpn-instructions-card,
:root[data-theme='dark'] .vpn-instructions-list,
:root[data-theme='dark'] .vpn-instruction-step,
:root[data-theme='dark'] .vpn-instructions-help-wrap {
    background: #111827 !important;
    color: #e5e7eb !important;
}

:root[data-theme='dark'] .vpn-instructions-title,
:root[data-theme='dark'] .vpn-instruction-text,
:root[data-theme='dark'] .vpn-instruction-num,
:root[data-theme='dark'] .vpn-instruction-icon,
:root[data-theme='dark'] .vpn-instructions-help-btn,
:root[data-theme='dark'] .vpn-instructions-help-btn span {
    color: #f3f4f6 !important;
}

:root[data-theme='dark'] .vpn-instruction-step {
    border-color: #334155 !important;
}

:root[data-theme='dark'] .one-vpn-badge {
    background: #111827 !important;
    background-image: none !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}

:root[data-theme='dark'] .one-vpn-badge span,
:root[data-theme='dark'] .one-vpn-badge strong {
    color: #e5e7eb !important;
}

:root[data-theme='dark'] a {
    color: #93c5fd !important;
}

:root[data-theme='dark'] input,
:root[data-theme='dark'] textarea,
:root[data-theme='dark'] select {
    background: #0f172a !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

:root[data-theme='dark'] .theme-toggle {
    background: transparent !important;
    color: #f9fafb !important;
    border: none !important;
    box-shadow: none !important;
}

.theme-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

:root[data-theme='dark'] .tw-border,
:root[data-theme='dark'] [class*='border-'],
:root[data-theme='dark'] [style*='border: 1px solid'],
:root[data-theme='dark'] [style*='border: 2px solid'],
:root[data-theme='dark'] [style*='border: 3px solid'] {
    border-color: #334155 !important;
}

:root[data-theme='dark'] [data-forced-dark-bg='1'] {
    background: #111827 !important;
    color: #e5e7eb !important;
}

:root[data-theme='dark'] .download-button {
    border-color: #334155 !important;
}

/* ЛК: почта рефералов — две иконки в одном слоте (overflow:hidden в style.css иначе режет штрих) */
.ref-email-toggle {
    position: relative;
    overflow: visible !important;
    box-sizing: border-box;
}

.ref-email-toggle svg {
    overflow: visible !important;
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: inherit;
}

.ref-email-wrap .ref-email-full {
    display: none !important;
}

.ref-email-wrap.is-open .ref-email-short {
    display: none !important;
}

.ref-email-wrap.is-open .ref-email-full {
    display: inline !important;
    word-break: break-all;
}

.ref-email-toggle .ref-eye-show {
    display: block !important;
}

.ref-email-toggle .ref-eye-hide {
    display: none !important;
}

.ref-email-wrap.is-open .ref-email-toggle .ref-eye-show {
    display: none !important;
}

.ref-email-wrap.is-open .ref-email-toggle .ref-eye-hide {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
