:root {
    --tb-bg: #0b1210;
    --tb-surface: #121a17;
    --tb-surface-2: #18231f;
    --tb-surface-3: #203029;
    --tb-border: #2b3a33;
    --tb-text: #e7f2ec;
    --tb-text-soft: #9fb5aa;
    --tb-accent: #22c55e;
    --tb-accent-2: #16a34a;
    --tb-accent-3: #15803d;
}

body {
    background: var(--tb-bg);
    color: var(--tb-text);
}

a {
    color: var(--tb-text);
}

a:hover,
a:focus,
.tmenu > li > a:hover,
.tmenu .menuactive > a,
.site-desc a,
.slice-btn span,
.full-text a,
.finfo a,
.comm-one > span.comm-author,
.comm-one > span.comm-author a,
.login-btm a {
    color: var(--tb-accent);
}

.pages,
.short-in,
.comm-right,
.lcomm-text,
.add-comm-form,
.filter-sect,
.sect-ffirst,
.side-panel,
.sect-wide,
.mass_comments_action,
.scriptcode,
.title_spoiler,
.text_spoiler,
.quote,
.hide,
.inhide,
.calendar td.day,
.calendar td.day-active-v,
.calendar th.workday,
.calendar td.weekday,
.calendar td.day-active,
.calendar th.weekday,
.vote-title,
.ui-dialog,
#dropmenudiv,
#share-popup,
.file-box,
.sres-wrap,
.us-prof {
    background: var(--tb-surface);
    color: var(--tb-text);
    border-color: var(--tb-border);
}

.header,
.footer,
.sect-ffirst .short-img-holder,
.usp-left,
.usp-activ {
    background: #08100d;
}

.footer {
    border-top-color: var(--tb-accent);
    color: var(--tb-text-soft);
}

.tmenu,
#gotop,
.hidden-menu,
.pm-menu a,
.pm_progress_bar,
#searchsuggestions,
.ui-dialog-titlebar,
.ui-dialog .ui-dialog-buttonpane,
.bb-pane,
.bb-pane-dropdown,
.highslide-html,
.highslide-wrapper,
.highslide-outline,
.highslide-caption {
    background: var(--tb-surface);
    color: var(--tb-text);
    border-color: var(--tb-border);
}

.tmenu,
.short-in,
.pages,
.sect-wide,
.ui-dialog,
#share-popup,
.us-prof,
.sres-wrap {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navigation span,
.pagi-nav a:hover,
.srate-fill,
.irs-bar,
.irs-bar-edge,
.calendar td.day-current,
.cloud-tags span a:hover {
    background-color: var(--tb-accent);
    border-color: var(--tb-accent);
    color: #fff;
}

.tmenu .fa,
.side-bt .fa,
.smenu a:before,
.btn-menu,
.btn-search,
.btn-login,
.btn-fav {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.tmenu .fa,
.side-bt .fa,
.smenu a:before,
.btn-menu,
.btn-search {
    color: #f3f7f4 !important;
}

.button,
.btn,
.pagi-load a,
.up-second li a,
.usp-edit a,
.qq-upload-button,
button:not(.color-btn):not([class*=fr]),
html input[type="button"],
input[type="reset"],
input[type="submit"],
.meta-fav a,
.usp-btn a,
.btn-login,
.sect-link,
.pm_progress_bar span,
.voteprogress span,
.pollprogress span {
    background: linear-gradient(180deg, var(--tb-accent), var(--tb-accent-2));
    color: #fff;
}

.button:hover,
.btn:hover,
.pagi-load a:hover,
.up-second li a:hover,
.usp-edit a:hover,
.qq-upload-button:hover,
button:not(.color-btn):hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.meta-fav a:hover,
.usp-btn a:hover,
.btn-login:hover,
.sect-link:hover {
    background: var(--tb-accent-3);
    color: #fff;
}

.btn-fav,
.ft-copyr a,
.irs-slider,
.ratingtypeplus,
.ratingplus,
.login-title:first-letter {
    color: var(--tb-accent);
}

input[type="text"],
input[type="password"],
select,
textarea,
.search-box input,
.search-box input:focus,
.nice-select,
.commentsreplyname {
    background: var(--tb-surface-2);
    color: var(--tb-text);
    box-shadow: inset 0 0 0 1px var(--tb-border);
}

input::placeholder,
textarea::placeholder,
.search-box input:not(:focus)::placeholder,
.lcomm-name,
.lcomm-date,
.site-desc,
.comm-one > span,
.comm-three-left > a,
.comm-three-right li a,
.comm-rate3 a,
.checkbox,
.xfieldsnote,
.irs-min,
.irs-max,
.login-check span,
#searchsuggestions a,
#share-popup .social ul a,
#share-popup .link span {
    color: var(--tb-text-soft);
}

.search-box button,
.filter-icon,
.filter-btn,
.fdl-btn,
.fdl-btn-gp,
.short-label,
.online,
.login-check span:after {
    background: var(--tb-accent) !important;
    color: #fff;
}

.fdl-btn-icon,
.fdl-btn-size,
.fdl-btn-gp .fdl-btn-icon,
.filter-btn + .filter-btn,
.sr-minus1 .fa {
    background-color: rgba(0, 0, 0, 0.22);
}

.fdl-btn:hover,
.filter-btn:hover {
    background-color: var(--tb-accent-2) !important;
}

.sr-plus1 .fa,
.short-label,
.online {
    background-color: var(--tb-accent);
}

.sr-plus1:hover .fa,
.sr-minus1:hover .fa,
.short-upd {
    background-color: #34d399;
}

.short-new,
.srate-bar,
.irs-from,
.irs-to,
.irs-single,
.offline {
    background-color: #355246;
    color: var(--tb-text);
}

.yellow,
.blue,
.green,
.berrors,
.findrelated,
#dlefastreplycomments {
    background: var(--tb-surface-2);
    color: var(--tb-text);
    border-left-color: var(--tb-accent);
}

.smenu a,
.hidden-menu a,
.login-soc-title:before,
.login-soc-title:after,
.nice-select,
.nice-select .list,
.bb-pane,
.bb-btn,
.sres-wrap,
.progress,
.file-box,
.comm-right,
.comm-right:after,
.pm-menu a,
.usp-name,
.calendar td.day,
.calendar td.day-active-v,
.calendar th.workday,
.calendar td.weekday,
.calendar td.day-active,
.calendar th.weekday {
    border-color: var(--tb-border);
}

.comm-right:before {
    border-right-color: var(--tb-surface);
}

.comm-right:after {
    border-right-color: var(--tb-border);
}

.lcomm-text:before {
    border-top-color: var(--tb-surface);
}

.smenu a {
    color: var(--tb-text);
    border-bottom-color: rgba(159, 181, 170, 0.18);
}

.site-desc h1,
.site-desc h2,
.sect-title,
.side-bt,
.vote-title,
.sres-text,
.sres-text h2,
.archives,
#dle_news_archive_link .archives,
.ui-icon-closethick:before,
.login-avatar,
.login-title,
.form-textarea > label {
    color: var(--tb-text);
}

.form-textarea > label,
.pm tr:nth-child(1),
.login-avatar {
    background: var(--tb-surface-2);
}

.pm tr:nth-child(2n+2),
.userstop tr:nth-child(2n+2),
.sres-wrap:nth-child(2n),
.bb-btn,
.bb-btn:hover,
.bb-btn:active,
.voteprogress,
.pollprogress,
.usp-name {
    background: var(--tb-surface-2);
    color: var(--tb-text);
}

.pm-menu a:hover,
#searchsuggestions a:hover,
#searchsuggestions span.seperator a,
.ui-menu .ui-menu-item a.ui-state-active {
    background: var(--tb-surface-3);
    color: var(--tb-text);
}

.ui-widget-overlay,
.close-overlay,
#loading-layer {
    background-color: rgba(0, 0, 0, 0.72);
}

.navigation a,
.navigation span.nav_ext,
.pagi-nav a {
    background: var(--tb-surface-2);
    color: var(--tb-text-soft);
}

.login-box {
    background: var(--tb-surface);
    border-top-color: var(--tb-accent);
    color: var(--tb-text);
}

.login-check span:before {
    background: var(--tb-surface-3);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

.login-check input:checked + span:before,
.login-check input:checked + span:after {
    background-color: var(--tb-accent);
}

.slice-masked:before {
    display: none !important;
    background: none !important;
}

.header-in {
    min-height: 92px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.logo {
    width: 430px;
    height: 76px;
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 72px;
    max-width: 100%;
    display: block;
}

.footer {
    background-image: none !important;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px auto;
}

.footer-logo img {
    width: auto;
    height: 96px;
    max-width: min(560px, 90vw);
    display: block;
}

.finfo.fx-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    justify-content: initial !important;
    align-items: stretch;
    margin-top: 18px;
    padding: 0 !important;
    list-style: none;
}

.finfo.fx-row > li,
.finfo__item {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px 16px !important;
    float: none !important;
    display: block;
}

.finfo__item {
    min-width: 0;
    background: linear-gradient(180deg, rgba(20, 30, 27, 0.98), rgba(14, 22, 20, 0.98));
    border: 1px solid rgba(70, 93, 84, 0.45);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.finfo__item div {
    margin-bottom: 6px;
    color: var(--tb-text-soft);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}

.finfo__item span {
    display: block;
    color: var(--tb-text);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.finfo__item span a {
    color: var(--tb-accent);
}

.finfo__item--wide {
    grid-column: 1 / -1;
}

.finfo__item--package span {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    color: #d7e8df;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.install-box {
    margin-top: 24px;
    padding: 15px 17px;
    background: linear-gradient(180deg, rgba(15, 40, 36, 0.96), rgba(11, 29, 27, 0.96));
    border: 1px solid rgba(53, 153, 102, 0.28);
    border-left: 4px solid var(--tb-accent);
    border-radius: 14px;
    color: var(--tb-text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.install-box__title {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.25;
    color: #eefcf4;
    font-weight: 700;
}

.install-box__steps {
    margin: 0;
    padding-left: 20px;
}

.install-box__steps li {
    margin-bottom: 8px;
    color: var(--tb-text);
    font-size: 16px;
    line-height: 1.45;
}

.install-box__steps li:last-child {
    margin-bottom: 0;
}

.install-box__note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6fff1;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

.bunnyvpn-banner {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
}

.bunnyvpn-banner__image {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.bunnyvpn-banner__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.bunnyvpn-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.bunnyvpn-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    background-size: 200% 200%;
    animation: bunnyvpnGradient 5s ease infinite;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.bunnyvpn-banner__link--channel {
    background-image: linear-gradient(135deg, #2aabee, #4fc3ff, #2aabee);
    color: #fff !important;
    border: 1px solid rgba(79, 195, 255, 0.55);
}

.bunnyvpn-banner__link--bot {
    background-image: linear-gradient(135deg, #1d9bf0, #43c0ff, #1d9bf0);
    color: #fff !important;
    border: 1px solid rgba(67, 192, 255, 0.55);
}

.bunnyvpn-banner__link:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.bunnyvpn-banner__link .fa {
    font-size: 17px;
    line-height: 1;
}

.download-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    margin: 0 !important;
}

.download-popup[hidden] {
    display: none !important;
}

.download-popup.is-open {
    display: flex !important;
}

.download-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 8, 0.78);
    backdrop-filter: blur(5px);
}

.download-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(10, 17, 13, 0.98));
    border: 1px solid rgba(74, 222, 128, 0.16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.download-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0 !important;
    line-height: 1;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-popup__close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: rotate(90deg);
    color: #fff;
}

.download-popup__label {
    margin-bottom: 8px;
    color: #8df0b8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-popup__title {
    margin-bottom: 16px;
    padding-right: 38px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.download-popup__ad {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.download-popup__ad-image {
    display: block;
    overflow: hidden;
    border-radius: 14px;
}

.download-popup__ad-image img {
    display: block;
    width: 100%;
    height: auto;
}

.download-popup__ad-text {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.55;
}

.download-popup__timer {
    margin-bottom: 14px;
    color: #dffbe8;
    font-size: 14px;
    line-height: 1.45;
}

.download-popup__timer span {
    color: #8df0b8;
    font-weight: 700;
}

.download-popup__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #2aabee, #37b7ff, #2aabee);
    background-size: 200% 200%;
    animation: bunnyvpnGradient 5s ease infinite;
    color: #fff !important;
    box-shadow: 0 18px 34px rgba(42, 171, 238, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.download-popup__action:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.download-popup__action.is-disabled {
    pointer-events: none;
    opacity: 0.58;
    filter: grayscale(0.1);
    box-shadow: none;
}

.download-popup__action .fa {
    font-size: 18px;
    line-height: 1;
}

body.download-popup-open {
    overflow: hidden;
}

.js-telegram-download-open {
    display: flex;
    width: 100%;
    border: 0;
    cursor: pointer;
    text-align: left;
    appearance: none;
}

@keyframes bunnyvpnGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media screen and (max-width: 1220px) {
    .header-in {
        min-height: 60px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .logo {
        width: 250px;
        height: 60px;
    }

    .logo img {
        height: 48px;
    }

    .finfo.fx-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .finfo.fx-row > li,
    .finfo__item {
        padding: 12px 13px !important;
        border-radius: 12px;
    }

    .finfo__item div {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .finfo__item span {
        font-size: 16px;
    }

    .finfo__item--package span {
        font-size: 14px;
        line-height: 1.4;
    }

    .install-box {
        padding: 14px 13px;
        border-radius: 12px;
    }

    .install-box__title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .install-box__steps {
        padding-left: 18px;
    }

    .install-box__steps li,
    .install-box__note {
        font-size: 14px;
        line-height: 1.45;
    }

    .bunnyvpn-banner {
        border-radius: 14px;
    }

    .bunnyvpn-banner__image,
    .bunnyvpn-banner__image img {
        border-radius: 14px;
    }

    .bunnyvpn-banner__actions {
        grid-template-columns: 1fr;
    }

    .bunnyvpn-banner__link {
        width: 100%;
        min-height: 42px;
    }

    .download-popup {
        padding: 16px 12px;
    }

    .download-popup__dialog {
        width: min(100%, 420px);
        padding: 18px 16px;
        border-radius: 20px;
    }

    .download-popup__title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .download-popup__ad {
        padding: 12px;
        border-radius: 16px;
    }

    .download-popup__timer,
    .download-popup__ad-text {
        font-size: 13px;
    }

    .download-popup__action {
        min-height: 50px;
        font-size: 15px;
    }
}
