/* ═══════════════════════════════════════════
   BYTE TEMPLATE — Base CSS
   Tech/Verge/TechCrunch inspired
   Prefix: bt-
   ═══════════════════════════════════════════ */

:root {
    --bt-accent: #00d084;
    --bt-accent-rgb: 0, 208, 132;
    --bt-accent-dim: rgba(0, 208, 132, 0.15);
    --bt-accent-soft: #e0faf0;
    --bt-max-w: 1320px;
    --bt-radius: 8px;
    --bt-radius-lg: 14px;
    --bt-gap: 20px;
    --bt-nav-h: 56px;
    --bt-catbar-h: 42px;
    --bt-sidebar-w: 180px;
    --bt-transition: 0.2s ease;
}

/* Dark-mode accent — brighter green + dark tint for soft surfaces */
body.dark-mode { --bt-accent: #26e39e; --bt-accent-soft: #0a3926; --bt-accent-dim: rgba(38, 227, 158, 0.18); }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--color-000); background: var(--color-fff); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
.icon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -3px; }

/* ── LAYOUT ── */
.bt-layout {
    display: grid;
    grid-template-columns: var(--bt-sidebar-w) 1fr var(--bt-sidebar-w);
    gap: var(--bt-gap);
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 24px 20px;
}
.bt-sidebar { position: relative; }
.bt-sidebar__sticky { position: sticky; top: calc(var(--bt-nav-h) + var(--bt-catbar-h) + 16px); }
.bt-sidebar__ad { margin-block-end: 16px; }
.bt-main { min-width: 0; }

@media (max-width: 1200px) {
    .bt-layout { grid-template-columns: 1fr; }
    .bt-sidebar { display: none; }
}
@media (max-width: 768px) {
    .bt-layout { padding: 12px 0; }
}

/* ── MAINTENANCE ── */
.bt-maintenance {
    background: linear-gradient(90deg, var(--bt-accent), #00b371);
    color: #000;
    text-align: center;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── INFO BAR ── */
.bt-infobar {
    background: var(--color-eee);
    border-block-end: 1px solid rgba(128,128,128,0.12);
    font-size: 0.8rem;
    color: var(--color-555);
}
.bt-infobar__inner {
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.bt-infobar__date { white-space: nowrap; }

/* Weather */
.bt-weather { position: relative; }
.bt-weather__btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 20px;
    background: transparent;
    font-size: 0.8rem;
    color: var(--color-555);
    transition: background var(--bt-transition);
}
.bt-weather__btn:hover { background: rgba(128,128,128,0.1); }
.bt-weather__btn svg { width: 12px; height: 12px; transition: transform var(--bt-transition); }
.bt-weather__btn.open svg { transform: rotate(180deg); }
.bt-weather__dropdown {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    min-width: 220px;
    background: var(--color-fff);
    border: 1px solid var(--color-eee);
    border-radius: var(--bt-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    display: none;
    overflow: hidden;
}
.bt-weather__dropdown.open { display: block; }
.bt-weather__city-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--bt-transition);
    font-size: 0.85rem;
}
.bt-weather__city-item:hover { background: var(--bt-accent-dim); }
.bt-weather__city-item.selected { background: var(--bt-accent-dim); font-weight: 600; }
.bt-weather__city-name { flex: 1; }
.bt-weather__city-link { display: flex; }
.bt-weather__city-link svg { width: 14px; height: 14px; opacity: 0.5; }

/* ── TOP BAR ── */
.bt-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-fff);
    border-block-end: 2px solid var(--bt-accent);
    backdrop-filter: blur(12px);
}
.bt-topbar__inner {
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: var(--bt-nav-h);
    gap: 8px;
}
.bt-topbar__logo { margin-inline-end: auto; display: flex; }
.bt-topbar__logo img { height: 34px; width: auto; }
.bt-topbar__right {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.bt-topbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background var(--bt-transition);
    color: var(--color-000);
}
.bt-topbar__btn:hover { background: var(--bt-accent-dim); }
.bt-topbar__btn svg { width: 20px; height: 20px; }
.bt-topbar__login {
    width: auto;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--bt-accent);
    color: #000;
    height: 34px;
}
.bt-topbar__login:hover { background: #00e892; }
.bt-topbar__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Notification badge */
.bt-topbar__notif { position: relative; }
.bt-topbar__badge {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-end: 4px;
    min-width: 17px;
    height: 17px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    padding: 0 4px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
}

/* Notification popup */
.bt-notif-popup {
    display: none;
    position: absolute;
    inset-block-start: 56px;
    inset-inline-end: 0;
    width: 360px;
    max-height: 420px;
    background: var(--color-fff);
    border: 1px solid var(--color-eee);
    border-radius: var(--bt-radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow-y: auto;
    z-index: 500;
}
.bt-notif-popup[popover-open] { display: block; }
.bt-notif-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    border-block-end: 1px solid var(--color-eee);
    position: sticky;
    top: 0;
    background: var(--color-fff);
}
.bt-notif-popup__header a { color: var(--color-999); }
.bt-notif-popup__header svg { width: 18px; height: 18px; }
.bt-notif-popup__loading { padding: 20px; text-align: center; color: var(--color-999); display: none; }

/* Notification item classes (sn3-sn11 from server) */
.bt-notif-popup__list .sn3 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-block-end: 1px solid var(--color-eee);
    transition: background var(--bt-transition);
    color: inherit;
}
.bt-notif-popup__list .sn3:hover { background: var(--bt-accent-dim); }
.bt-notif-popup__list .sn4 { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bt-notif-popup__list .sn5 { flex: 1; min-width: 0; }
.bt-notif-popup__list .sn6 { font-size: 0.85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-notif-popup__list .sn7 { font-size: 0.75rem; color: var(--color-999); margin-block-start: 3px; }
.bt-notif-popup__list .sn8 { width: 48px; height: 32px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.bt-notif-popup__list .sn11 { display: none; }

/* User dropdown */
.bt-user-menu { position: relative; }
.bt-user-menu__dropdown {
    display: none;
    position: absolute;
    inset-block-start: 48px;
    inset-inline-end: 0;
    min-width: 200px;
    background: var(--color-fff);
    border: 1px solid var(--color-eee);
    border-radius: var(--bt-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 200;
}
.bt-user-menu__dropdown.open { display: block; }
.bt-user-menu__dropdown a,
.bt-user-menu__dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--color-000);
    transition: background var(--bt-transition);
    text-align: start;
}
.bt-user-menu__dropdown a:hover,
.bt-user-menu__dropdown button:hover { background: var(--bt-accent-dim); }
.bt-user-menu__dropdown svg { width: 16px; height: 16px; opacity: 0.7; }

/* ── CATEGORY BAR ── */
.bt-catbar {
    background: var(--color-fff);
    border-block-end: 1px solid var(--color-eee);
    position: sticky;
    top: var(--bt-nav-h);
    z-index: 99;
}
.bt-catbar__inner {
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0;
    height: var(--bt-catbar-h);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.bt-catbar__inner::-webkit-scrollbar { display: none; }
.bt-catbar__link {
    white-space: nowrap;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-555);
    border-block-end: 2px solid transparent;
    transition: color var(--bt-transition), border-color var(--bt-transition);
}
.bt-catbar__link:hover { color: var(--bt-accent); border-block-end-color: var(--bt-accent); }

/* ── DRAWER ── */
.bt-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.bt-drawer-overlay.open { opacity: 1; visibility: visible; }
.bt-drawer {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 300px;
    max-width: 85vw;
    height: 100dvh;
    background: var(--color-fff);
    z-index: 201;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 16px 0;
}
[dir="rtl"] .bt-drawer { transform: translateX(100%); }
.bt-drawer-overlay.open .bt-drawer { transform: translateX(0); }
.bt-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 12px 8px auto;
    border-radius: 50%;
    color: var(--color-000);
}
.bt-drawer__close:hover { background: var(--bt-accent-dim); }
.bt-drawer__close svg { width: 20px; height: 20px; }
.bt-drawer__title {
    padding: 12px 20px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bt-accent);
}

/* Shared drawer classes from _shared/functions.php */
.ns-drawer__group { border-block-end: 1px solid var(--color-eee); }
.ns-drawer__group-head { display: flex; align-items: center; }
.ns-drawer__link,
.ns-drawer__sublink {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-000);
    transition: background var(--bt-transition);
    flex: 1;
}
.ns-drawer__sublink { padding-inline-start: 36px; font-size: 0.85rem; color: var(--color-555); }
.ns-drawer__link:hover,
.ns-drawer__sublink:hover { background: var(--bt-accent-dim); }
.ns-drawer__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-999);
}
.ns-drawer__toggle svg { width: 14px; height: 14px; transition: transform var(--bt-transition); }
.ns-drawer__toggle.open svg { transform: rotate(180deg); }
.ns-drawer__sub { display: none; }
.ns-drawer__sub.open { display: block; }

.bt-drawer__link {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-000);
    transition: background var(--bt-transition);
}
.bt-drawer__link:hover { background: var(--bt-accent-dim); }
.bt-drawer__social {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    flex-wrap: wrap;
}
.bt-drawer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-eee);
    color: var(--color-555);
    transition: background var(--bt-transition), color var(--bt-transition);
}
.bt-drawer__social a:hover { background: var(--bt-accent); color: #000; }
.bt-drawer__social svg { width: 16px; height: 16px; }

/* ── SEARCH OVERLAY ── */
.bt-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-block-start: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.bt-search-overlay.open { opacity: 1; visibility: visible; }
.bt-search-close {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    color: #fff;
    width: 44px;
    height: 44px;
}
.bt-search-close svg { width: 24px; height: 24px; }
.bt-search-box {
    width: 90%;
    max-width: 640px;
}
.bt-search-box input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.3rem;
    border: 2px solid var(--bt-accent);
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    font-family: var(--font-primary);
}
.bt-search-box input::placeholder { color: rgba(255,255,255,0.4); }
.bt-search-results { margin-block-start: 16px; }
.bt-popular-searches { padding: 8px 0; }
.bt-popular-searches__title { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-block-end: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.bt-popular-searches__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-popular-searches__tag {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    transition: background var(--bt-transition);
}
.bt-popular-searches__tag:hover { background: var(--bt-accent); color: #000; }
/* Search live results */
.sl4 a { color: #fff; }
.sl4 a:hover { color: var(--bt-accent); }

/* ── HEADER AD ── */
.bt-ad-banner { text-align: center; max-width: var(--bt-max-w); margin: 0 auto; padding: 8px 20px; }

/* ── AD SYSTEM ── */
.ad-banner { position: relative; }
.ad-banner.ad-floating { position: fixed; }
.ad-floating {
    anchor-name: --floating-ad;
    position: fixed;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 500;
    text-align: center;
    background: var(--color-fff);
    border-block-start: 1px solid var(--color-eee);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.ad-floating img { width: 100%; object-fit: cover; }
.ad-footer { text-align: center; max-width: var(--bt-max-w); margin: 20px auto; padding: 0 20px; }
.ad-header { text-align: center; max-width: var(--bt-max-w); margin: 0 auto; }
.ad-sidebar { margin-block-end: 16px; }

/* ── POPUP AD ── */
.bt-popup-ad {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}
.bt-popup-ad.active { display: flex; }
.bt-popup-ad__box {
    position: relative;
    background: var(--color-fff);
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.bt-popup-ad__close {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    z-index: 2;
}
.bt-popup-ad__close svg { width: 16px; height: 16px; }

/* ── INTERSTITIAL AD ── */
.bt-interstitial {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 700;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.bt-interstitial.active { display: flex; }
.bt-interstitial__box { position: relative; text-align: center; max-width: 720px; width: 90%; }
.bt-interstitial__timer {
    position: absolute;
    inset-block-start: -40px;
    inset-inline-end: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}
.bt-interstitial__close {
    position: absolute;
    inset-block-start: -40px;
    inset-inline-end: 0;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
}

/* ── LOGIN MODAL ── */
.bt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}
.bt-modal.is-active { display: flex; }
.bt-modal.is-visible .bt-modal__box { transform: scale(1); opacity: 1; }
.bt-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.bt-modal__box {
    position: relative;
    background: var(--color-fff);
    border-radius: var(--bt-radius-lg);
    max-width: 440px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
}
.bt-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-block-end: 1px solid var(--color-eee);
}
.bt-modal__title { font-weight: 700; font-size: 1rem; }
.bt-modal__close { color: var(--color-999); }
.bt-modal__close svg { width: 20px; height: 20px; }
.bt-modal__body { padding: 20px; }
.bt-modal__intro { margin-block-end: 14px; color: var(--color-555); font-size: 0.9rem; }
.bt-modal__list { margin-block-end: 20px; }
.bt-modal__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--color-333);
}
.bt-modal__list svg { width: 18px; height: 18px; color: var(--bt-accent); flex-shrink: 0; }
.bt-modal__btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--bt-accent);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--bt-radius);
    transition: background var(--bt-transition);
}
.bt-modal__btn:hover { background: #00e892; }

/* ── SESSION TOAST ── */
.bt-toast {
    position: fixed;
    inset-block-end: 24px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 800;
    animation: btToastIn 0.4s ease, btToastOut 0.4s 3.5s ease forwards;
}
.bt-toast__msg {
    background: var(--color-000);
    color: var(--color-fff);
    padding: 12px 24px;
    border-radius: var(--bt-radius);
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    white-space: nowrap;
}
@keyframes btToastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes btToastOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* ── FOOTER ── */
.bt-footer {
    background: var(--color-eee);
    margin-block-start: 40px;
    border-block-start: 2px solid var(--bt-accent);
}
.bt-footer__inner {
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 40px 20px 20px;
}
.bt-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-block-end: 32px;
}
.bt-footer__logo { height: 36px; width: auto; margin-block-end: 12px; }
.bt-footer__desc { font-size: 0.85rem; color: var(--color-555); line-height: 1.5; }
.bt-footer__col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bt-accent);
    margin-block-end: 12px;
}
.bt-footer__link {
    display: block;
    font-size: 0.85rem;
    color: var(--color-555);
    padding: 4px 0;
    transition: color var(--bt-transition);
}
.bt-footer__link:hover { color: var(--bt-accent); }
.bt-footer__social { display: flex; flex-direction: column; gap: 2px; }
.bt-footer__social a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--color-555);
    transition: color var(--bt-transition);
}
.bt-footer__social a:hover { color: var(--bt-accent); }
.bt-footer__social svg { width: 16px; height: 16px; }
.bt-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block-start: 20px;
    border-block-start: 1px solid rgba(128,128,128,0.15);
    font-size: 0.8rem;
    color: var(--color-999);
}
.bt-footer__bottom-links { display: flex; gap: 16px; }
.bt-footer__bottom-links a { color: var(--color-999); transition: color var(--bt-transition); }
.bt-footer__bottom-links a:hover { color: var(--bt-accent); }

@media (max-width: 768px) {
    .bt-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .bt-footer__top { grid-template-columns: 1fr; }
    .bt-footer__bottom { flex-direction: column; text-align: center; }
}

/* ── SCROLL TOP ── */
.bt-scroll-top {
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-accent);
    color: #000;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,208,132,0.35);
    z-index: 501;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    position-anchor: --floating-ad;
}
.bt-scroll-top.visible { opacity: 1; visibility: visible; }
.bt-scroll-top svg { width: 20px; height: 20px; }
body:has(.ad-floating) .bt-scroll-top { bottom: calc(anchor(top) + 10px); }

/* ── COOKIE CONSENT ── */
.bt-cookie {
    position: fixed;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 1000;
    background: var(--color-fff);
    border-block-start: 2px solid var(--bt-accent);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    padding: 20px;
}
.bt-cookie__inner {
    max-width: var(--bt-max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.bt-cookie__text { flex: 1; min-width: 280px; }
.bt-cookie__text strong { display: block; margin-block-end: 6px; font-size: 0.95rem; }
.bt-cookie__text p { font-size: 0.83rem; color: var(--color-555); line-height: 1.5; }
.bt-cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-cookie__btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.83rem;
    font-weight: 600;
    border: 1px solid var(--color-eee);
    background: transparent;
    color: var(--color-000);
    transition: background var(--bt-transition);
    cursor: pointer;
}
.bt-cookie__btn:hover { background: var(--color-eee); }
.bt-cookie__btn--primary { background: var(--bt-accent); color: #000; border-color: var(--bt-accent); }
.bt-cookie__btn--primary:hover { background: #00e892; }
.bt-cookie__details {
    display: none;
    max-width: var(--bt-max-w);
    margin: 16px auto 0;
    padding-block-start: 16px;
    border-block-start: 1px solid var(--color-eee);
}
.bt-cookie__details.open { display: block; }
.bt-cookie__type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.88rem;
}
.bt-cookie__required { font-size: 0.78rem; color: var(--color-999); }
.bt-cookie__toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.bt-cookie__toggle input { opacity: 0; width: 0; height: 0; }
.bt-cookie__slider {
    position: absolute;
    inset: 0;
    background: var(--color-eee);
    border-radius: 22px;
    cursor: pointer;
    transition: background var(--bt-transition);
}
.bt-cookie__slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    inset-block-end: 3px;
    inset-inline-start: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--bt-transition);
}
.bt-cookie__toggle input:checked + .bt-cookie__slider { background: var(--bt-accent); }
.bt-cookie__toggle input:checked + .bt-cookie__slider::before { transform: translateX(18px); }

/* ── AD: header banner ────────────────── */
.bt-ad-banner { max-width: var(--bt-max-w, 1280px); margin: 0 auto; text-align: center; padding: 8px 20px; }
.bt-ad-banner:empty { display: none; }
.bt-ad-banner img { max-width: 100%; height: auto; margin: 0 auto; display: block; }

/* ── AD: common ───────────────────────── */
.ad-banner { position: relative; }
.ad-banner.ad-floating { position: fixed; }
.ad-banner .ad-hide-btn:hover { background: rgba(0,0,0,0.8); }

/* ── AD: floating ─────────────────────── */
.ad-floating { anchor-name: --floating-ad; position: fixed; inset-block-end: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 500; background: #111; text-align: center; padding: 6px 0; box-shadow: 0 -2px 12px rgba(0,0,0,0.3); }
.ad-floating img { max-height: 90px; width: 100%; object-fit: cover; display: block; }
.ad-floating .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 8px; background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 14px; cursor: pointer; line-height: 1; }
.ad-floating .ad-hide-btn:hover { background: rgba(255,255,255,0.4); }

/* ── AD: footer banner ────────────────── */
.ad-footer { max-width: var(--bt-max-w, 1280px); margin: 20px auto; text-align: center; padding: 0 20px; position: relative; }
.ad-footer img { max-width: 100%; height: auto; margin: 0 auto; display: block; border-radius: 6px; }
.ad-footer .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 24px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 1; }

/* ── AD: header ───────────────────────── */
.ad-header { max-width: var(--bt-max-w, 1280px); margin: 0 auto; text-align: center; padding: 8px 20px; position: relative; }
.ad-header img { max-width: 100%; height: auto; margin: 0 auto; display: block; }

/* ── AD: sidebar ──────────────────────── */
.ad-sidebar { position: relative; margin-bottom: 20px; border-radius: 6px; overflow: hidden; }
.ad-sidebar img { max-width: 100%; display: block; }

/* scroll-top defined above (line 720) — uses .visible class */

/* ── TRADING VIEW ── */
.tradingview-widget-container { border-block-end: 1px solid var(--color-eee); }

/* ── Notifications (ShowNotifications) — byte tech terminal skin ── */
body {
  --notif-bg: #0a0f0a;
  --notif-text: var(--bt-accent, #00d084);
  --notif-radius: 4px;
  --notif-accent-bar: 3px;
  --notif-accent-color: var(--bt-accent, #00d084);
  --notif-border-width: 1px;
  --notif-border-color: rgba(0,208,132,0.35);
  --notif-font: "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", Menlo, monospace;
  --notif-font-weight: 500;
  --notif-font-size: 13px;
  --notif-letter-spacing: 0;
  --notif-text-transform: none;
  --notif-padding: 12px 16px;
  --notif-padding-mobile: 10px 14px;
  --notif-shadow: 0 0 0 1px rgba(0,208,132,0.25), 0 10px 28px rgba(0,208,132,0.25);
  --notif-max-width: 380px;
}
body.dark-mode {
  --notif-bg: #050a05;
  --notif-text: var(--bt-accent, #26e39e);
  --notif-border-color: rgba(38,227,158,0.45);
  --notif-shadow: 0 0 0 1px rgba(38,227,158,0.35), 0 12px 34px rgba(38,227,158,0.35);
}

/* ── DELETE/CONFIRM DIALOG (shared dl1/dl2/dl3 markup) ── */
.dl1 {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 440px;
  width: 90%;
  height: fit-content;
  max-height: 90vh;
  padding: 0;
  background: var(--color-fff);
  color: var(--color-000);
  border: none;
  border-top: 4px solid var(--bt-accent);
  border-radius: 0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), 0 20px 60px rgba(0,0,0,0.3);
  opacity: 0;
  scale: .96;
  transition: opacity .3s cubic-bezier(.4,0,.2,1), scale .3s cubic-bezier(.4,0,.2,1),
              overlay .3s allow-discrete, display .3s allow-discrete;
  overflow: hidden;
}
.dl1::backdrop {
  background-color: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  transition: background-color .3s, backdrop-filter .3s, display .3s allow-discrete, overlay .3s allow-discrete;
}
.dl1[open] { opacity: 1; scale: 1; }
.dl1[open]::backdrop { background-color: rgba(26,26,26,.6); backdrop-filter: blur(3px); }
@starting-style {
  .dl1[open] { opacity: 0; scale: .96; }
  .dl1[open]::backdrop { background-color: rgba(0,0,0,0); backdrop-filter: blur(0); }
}
.dl2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 20px 24px 8px;
  margin: 0;
  color: var(--color-000);
}
.dl3 {
  font-size: 14px;
  line-height: 1.5;
  padding: 0 24px 20px;
  margin: 0;
  color: var(--color-555);
}
.dl1 .npuni-btn-group {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--color-eee);
  background: color-mix(in srgb, var(--color-eee) 30%, var(--color-fff));
}
.dl1 .npuni-btn {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-555);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.dl1 .npuni-btn:hover { background: var(--color-eee); color: var(--color-000); }
.dl1 .npuni-btn + .npuni-btn { border-inline-start: 1px solid var(--color-eee); }
.dl1 .npuni-btn.filled {
  background: var(--bt-accent);
  color: #fff;
}
.dl1 .npuni-btn.filled:hover { filter: brightness(.88); }

body.dark-mode .dl1 { background: #1a1a1a; border-top-color: var(--bt-accent); }
body.dark-mode .dl1 .npuni-btn-group { background: #111; border-top-color: #333; }
body.dark-mode .dl1 .npuni-btn { color: #ccc; }
body.dark-mode .dl1 .npuni-btn:hover { background: #222; color: #fff; }
body.dark-mode .dl1 .npuni-btn + .npuni-btn { border-inline-start-color: #333; }
body.dark-mode .dl1[open]::backdrop { background-color: rgba(0,0,0,.75); }
