/* ============================================================
   B2 → AITYKE OVERRIDES
   This file is the visual bridge between the B2 PRO parent
   theme and the AITYKE design system. It is loaded AFTER the
   parent's dynamic <style> block (Modules/Templates/Main.php
   ~lines 550-555) so our token bindings win.
   ============================================================ */

/* ============================================================
   (a) TOKEN BRIDGE
   B2 internally uses --b2color / --b2lightcolor / --b2radius
   in dozens of selectors. Rebinding them once flips brand
   colour everywhere automatically.
   ============================================================ */
:root {
    --b2color:        #d4845a !important;
    --b2lightcolor:   rgba(212, 132, 90, 0.18) !important;
    --b2light:        rgba(212, 132, 90, 0.04) !important;
    --b2radius:       10px !important;
}

/* ============================================================
   (b) BASE PAGE
   ============================================================ */
html, body {
    background: var(--color-bg) !important;
    color: var(--color-text);
    font-family: var(--font-sans) !important;
    -webkit-font-smoothing: antialiased;
}
body.aityke-skin {
    font-family: var(--font-sans) !important;
}
body.aityke-skin a {
    color: var(--color-primary);
}
body.aityke-skin a:hover {
    color: var(--color-primary-hover);
}

/* B2 sets the page background image div — soften it */
.b2-page-bg img { opacity: 0.35; }

/* ============================================================
   (c) HEADER / SITE CHROME
   B2's .site-header is replaced markup-wise by header.php in
   this child theme. Defensive overrides cover the case where
   B2 plugins re-emit .site-header partials.
   ============================================================ */
.site-header,
.site-header-in {
    background: var(--header-bg) !important;
    box-shadow: var(--elev-2) !important;
    height: auto !important;
    color: var(--header-fg);
}
.site-header-in,
.header,
.header-banner {
    background-color: var(--header-bg) !important;
    color: var(--header-fg);
}
.site .site-header-in {
    box-shadow: var(--elev-2) !important;
}

/* B2's two-row header → flatten and align AITYKE */
.header-banner-left .menu > li > a,
.header .button,
.header .login-button button,
.header .header-logo,
.social-top .site-title {
    color: var(--header-fg) !important;
    fill: var(--header-fg) !important;
}
.header-banner-left .menu > li.current-menu-item > a:after {
    background: var(--orange-500) !important;
}

/* ============================================================
   (d) WRAPPER / CONTENT AREA
   ============================================================ */
.wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 var(--sp-5);
}
@media (max-width: 768px) {
    .wrapper { padding: 0 var(--sp-3); }
}
.site-content {
    background: var(--color-bg) !important;
    padding-bottom: var(--sp-10);
}
.b2-content,
.b2-single-content {
    background: transparent;
}

.b2-content .content-area,
.b2-single-content .content-area {
    background: var(--surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--elev-2);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
}
@media (max-width: 768px) {
    .b2-content .content-area,
    .b2-single-content .content-area {
        padding: var(--sp-4);
        border-radius: var(--radius-md);
    }
}

/* B2 utility radius */
.b2-radius { border-radius: var(--radius-md) !important; }

/* ============================================================
   (e) BUTTONS — B2 emits .button, .b2-btn, input[type=submit]
   ============================================================ */
.button,
.b2-btn,
input[type="submit"],
input[type="button"],
button.b2-default-button,
.wp-block-button__link {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600;
    font-family: var(--font-sans) !important;
    padding: 0 18px;
    height: 40px;
    line-height: 40px;
    box-shadow: 0 2px 6px rgba(212, 132, 90, 0.30);
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.button:hover,
.b2-btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button.b2-default-button:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700)) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-orange-lg) !important;
}
.button.button-default,
.b2-btn.button-default {
    background: var(--surface-1) !important;
    color: var(--color-text) !important;
    border: 1.5px solid var(--color-border) !important;
    box-shadow: var(--shadow-xs) !important;
}
.button.button-default:hover,
.b2-btn.button-default:hover {
    background: var(--orange-50) !important;
    color: var(--orange-700) !important;
    border-color: var(--orange-300) !important;
}

/* ============================================================
   (f) FORMS — inputs/textarea/select inside B2 markup
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    background: var(--surface-1) !important;
    color: var(--color-text) !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 11px 14px;
    font-family: var(--font-sans) !important;
    font-size: 14px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: var(--orange-500) !important;
    box-shadow: var(--ring-primary) !important;
}

/* ============================================================
   (g) WIDGETS — B2 widget area
   ============================================================ */
.widget-area {
    width: 320px;
}
.widget {
    background: var(--surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--elev-2);
    padding: var(--sp-5);
    margin-bottom: var(--sp-5);
}
.widget-title,
.widget h2.widget-title,
.widget h3.widget-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: var(--orange-700) !important;
    margin: 0 0 var(--sp-3) 0 !important;
    padding: 0 !important;
    border: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.widget-title::before {
    content: '';
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.widget-title i { color: var(--orange-600); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--color-text-2);
    font-size: 14px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text-2); }
.widget ul li a:hover { color: var(--orange-700); }

.widget .tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    color: var(--color-text-2) !important;
    font-size: 12px !important;
    border: 1px solid var(--color-border);
    transition: all var(--t-fast);
}
.widget .tagcloud a:hover {
    background: var(--orange-50);
    color: var(--orange-700) !important;
    border-color: var(--orange-300);
}

/* ============================================================
   (h) POST LISTS / CARDS
   ============================================================ */
.post-list-item,
.post-style-1 .post-item,
.post-style-2 .post-item,
article.post,
article.type-post {
    background: var(--surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--elev-2);
    padding: var(--sp-5);
    margin-bottom: var(--sp-4);
    transition: box-shadow var(--t-base), transform var(--t-base);
}
.post-list-item:hover,
.post-style-1 .post-item:hover,
.post-style-2 .post-item:hover,
article.post:hover {
    box-shadow: var(--elev-3);
    transform: translateY(-1px);
}

a.post-list-cat-item {
    background: var(--orange-100) !important;
    color: var(--orange-700) !important;
    border-radius: var(--radius-full) !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* B2 entry / post titles */
.entry-title,
.post-title,
.post-list-title,
.b2-widget-post-title h2 {
    color: var(--color-text) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.entry-title a,
.post-title a,
.post-list-title a {
    color: var(--color-text) !important;
}
.entry-title a:hover,
.post-title a:hover,
.post-list-title a:hover {
    color: var(--orange-700) !important;
}

/* B2 active / current-link */
.is-active-link {
    font-weight: 700 !important;
    color: var(--orange-700) !important;
}

/* ============================================================
   (i) PAGINATION
   ============================================================ */
.pagination,
.b2-pagination,
.nav-links {
    display: flex; gap: 4px; align-items: center;
    margin: var(--sp-6) 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span,
.b2-pagination a,
.b2-pagination span,
.nav-links a,
.nav-links span,
.page-numbers {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: var(--surface-1);
    color: var(--color-text-2) !important;
    border: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all var(--t-fast);
}
.pagination a:hover,
.b2-pagination a:hover,
.nav-links a:hover,
.page-numbers:hover {
    border-color: var(--orange-300);
    color: var(--orange-700) !important;
    background: var(--orange-50);
}
.page-numbers.current,
.pagination .current,
.b2-pagination .current {
    background: var(--orange-500) !important;
    color: #fff !important;
    border-color: var(--orange-500) !important;
}

/* ============================================================
   (j) COMMENTS
   ============================================================ */
.comment-list,
.comments-area ol.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list li.comment,
.comment-list li.pingback {
    background: var(--surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    margin-bottom: var(--sp-3);
    box-shadow: var(--elev-1);
}
.comment-author {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: var(--sp-2);
}
.comment-author img.avatar {
    border-radius: 50%;
    width: 40px; height: 40px;
}
.comment-author .fn {
    font-weight: 700; color: var(--color-text);
    font-style: normal;
}
.comment-meta {
    font-size: 12px; color: var(--color-muted);
}
.comment-content {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
}
.comment-reply-link {
    display: inline-block;
    margin-top: var(--sp-2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--orange-700) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.comment-reply-link:hover {
    background: var(--orange-100);
}
.comment-respond {
    background: var(--surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    margin-top: var(--sp-5);
}
.comment-reply-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--sp-3);
}

/* ============================================================
   (k) FOOTER (B2 default markup, replaced by our footer.php
   but defensively styled in case partials emit it again)
   ============================================================ */
.site-footer {
    background: var(--surface-2) !important;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-2);
    padding: var(--sp-10) 0 var(--sp-6);
}
.site-footer-nav {
    background: var(--surface-1) !important;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-2);
}
.footer-bottom {
    color: var(--color-muted);
    font-size: 12px;
}
.footer-bottom a { color: var(--color-text-2) !important; }
.footer-bottom a:hover { color: var(--orange-700) !important; }
.footer-links a {
    color: var(--color-text-2) !important;
    font-size: 13px;
}
.footer-links a:hover { color: var(--orange-700) !important; }
#bigTriangleColor {
    background: var(--surface-2) !important;
}

/* ============================================================
   (l) MOBILE FOOTER MENU (B2's bottom-nav / FAB shell)
   ============================================================ */
.mobile-footer-menu,
#mobile-footer-menu {
    background: var(--surface-1) !important;
    border-top: 1px solid var(--color-border) !important;
    box-shadow: var(--elev-3) !important;
    color: var(--color-text-2);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-footer-menu a,
.mobile-footer-menu button,
#mobile-footer-menu a,
#mobile-footer-menu button {
    color: var(--color-text-2) !important;
}
.mobile-footer-menu .current-menu-item a,
#mobile-footer-menu .current-menu-item a,
.mobile-footer-menu a:hover,
#mobile-footer-menu a:hover {
    color: var(--orange-700) !important;
}
.mobile-footer-center button {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    box-shadow: var(--shadow-orange) !important;
    border-radius: 50% !important;
}

/* B2 post-po-box (mobile compose tray) */
#post-po-box .po-post-in {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--elev-5);
}
#post-po-box .po-post-icon {
    background: var(--orange-100);
    color: var(--orange-700);
    border-radius: var(--radius-md);
}

/* ============================================================
   (m) LOGIN / SIGNUP MODAL (B2 emits .b2-popup / .b2-modal)
   ============================================================ */
.b2-popup,
.b2-modal,
.b2-pop {
    background: var(--surface-raised) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--elev-5) !important;
    border: 1px solid var(--color-border) !important;
}
.b2-popup .b2-popup-title,
.b2-modal .b2-modal-title {
    color: var(--color-text) !important;
    font-weight: 700;
}

/* ============================================================
   (n) BREADCRUMBS
   ============================================================ */
.breadcrumbs,
.b2-breadcrumbs,
.breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
    padding: var(--sp-3) 0;
}
.breadcrumbs a,
.b2-breadcrumbs a,
.breadcrumb a {
    color: var(--color-text-2) !important;
}
.breadcrumbs a:hover,
.b2-breadcrumbs a:hover,
.breadcrumb a:hover {
    color: var(--orange-700) !important;
}

/* ============================================================
   (o) SEARCH FIELD
   ============================================================ */
.top-search input,
.search-form input[type="search"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--color-text) !important;
    border-radius: var(--radius-full) !important;
    padding: 8px 14px;
}
.top-search input::placeholder { color: var(--color-subtle) !important; }

/* ============================================================
   (p) USER AVATAR / DROPDOWN
   ============================================================ */
.user-info-list,
.user-dropdown {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--elev-4) !important;
}
.user-info-list a,
.user-dropdown a {
    color: var(--color-text) !important;
}
.user-info-list a:hover,
.user-dropdown a:hover {
    background: var(--orange-50) !important;
    color: var(--orange-700) !important;
}

/* ============================================================
   (q) HEADINGS INSIDE CONTENT
   ============================================================ */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.b2-content h1,
.b2-content h2,
.b2-content h3,
.b2-content h4,
.b2-content h5,
.b2-content h6 {
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-3);
}
.entry-content p,
.entry-content li,
.b2-content p,
.b2-content li {
    color: var(--color-text-2);
    line-height: 1.7;
}
.entry-content blockquote,
.b2-content blockquote {
    border-left: 3px solid var(--orange-500);
    background: var(--orange-50);
    padding: var(--sp-3) var(--sp-4);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text);
    margin: var(--sp-4) 0;
}
.entry-content code,
.b2-content code {
    background: var(--surface-sunken);
    color: var(--orange-700);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}
.entry-content pre,
.b2-content pre {
    background: var(--dark-700);
    color: var(--orange-100);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* ============================================================
   (r) LAYOUT FIX — neutralise B2 flex on our shell
   .b2-content { display:flex } and .b2-single-content { display:flex }
   collapse our .aityke-container child to its min-content. Force
   block layout inside the AITYKE shell so .aityke-page-grid wins.
   ============================================================ */
.aityke-page-main.b2-content,
.aityke-page-main.b2-single-content,
main.b2-content.aityke-page-main,
main.b2-single-content.aityke-page-main {
    display: block !important;
}
.aityke-container { width: 100%; }
.aityke-page-grid > * { min-width: 0; }
.aityke-page-grid.no-aside {
    grid-template-columns: minmax(0, 1fr) !important;
}

/* ============================================================
   (s) UNIFIED HEADER — strip every blue from B2's secondary bar
   B2's Modules/Templates/Header.php injects its own <style> block
   late, so every rule here uses !important to win.
   ============================================================ */
.site-header.mg-b,
.site-header,
.site-header-in,
.header-banner,
.header,
.social-top {
    background: var(--header-bg) !important;
    box-shadow: none !important;
}
.site .site-header-in,
.site.up .site-header-in {
    transform: none !important;
    transition: none !important;
    box-shadow: var(--elev-2) !important;
}

/* Menu links (top, ym, sub) — white with orange hover, no blue */
.top-menu a,
.top-menu-ul a,
.ym-menu a,
.header-banner-left .menu a,
.header-banner-left .menu li a,
.top-menu ul li.depth-0 > a,
.is-active-link {
    color: rgba(255, 255, 255, 0.92) !important;
    fill: rgba(255, 255, 255, 0.92) !important;
}
.top-menu a:hover,
.top-menu-ul a:hover,
.ym-menu a:hover,
.header-banner-left .menu a:hover,
.header-banner-left .menu li a:hover {
    color: var(--orange-300) !important;
}

/* Active menu underline (B2 .hob and .current-menu-item:after) */
.header-banner-left .menu > li.current-menu-item > a:after,
.top-menu ul li.depth-0:hover > a .hob,
.top-menu ul li.depth-0 > a .hob {
    background: var(--orange-400) !important;
}

/* Site title / logo text inside the bar */
.social-top .site-title,
.header-logo,
.header-logo a,
.header-logo .site-title {
    color: #fff !important;
}

/* Search field, + button, bell */
.top-search input,
.search-input.b2-radius,
input.search-input {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    color: #fff !important;
}
.top-search input::placeholder,
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}
.top-search-select,
.top-search-button button {
    color: rgba(255, 255, 255, 0.85) !important;
    fill: currentColor !important;
}
.search-button-action {
    color: #fff !important;
    fill: #fff !important;
    background: transparent !important;
}

.change-theme button,
.user-tools .user-tools-item,
.user-tips,
.header-user .change-theme button {
    color: #fff !important;
    fill: #fff !important;
    background: transparent !important;
}
.change-theme button:hover { color: var(--orange-300) !important; }

.login-button button,
.header-login-button button {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    background: transparent !important;
}
.header-login-button button:last-child {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    border-color: transparent !important;
}

/* Notification dot was a hard blue */
.bar-mark {
    background: var(--orange-500) !important;
}

/* B2 ribbon badges (.b2small) — were blue gradient */
.b2small {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
}
.b2small.vip-tips {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500)) !important;
    color: #fff !important;
}
.b2small.shop-tips {
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600)) !important;
    color: #fff !important;
}

/* ============================================================
   (t) AVATAR DROPDOWN — turn .top-user-box-drop AITYKE-native
   ============================================================ */
.top-user-box-drop,
.new-dmsg-list,
.user-info-list,
.user-dropdown,
.jt.b2-radius {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--elev-4) !important;
    color: var(--color-text) !important;
}
.top-user-info-box-name h2,
.top-user-info-box-count b,
.top-user-info-box-count span,
.top-user-name,
.top-user-name h2 {
    color: var(--color-text) !important;
}
.top-user-info-box-count p span { color: var(--color-muted) !important; }
.top-user-info-box-count p b   { color: var(--color-text) !important; }

/* Daily-task progress bar (was blue) */
.user-w-rw {
    background: var(--surface-3) !important;
    border-radius: var(--radius-full) !important;
    overflow: hidden;
}
.user-w-rw-bg {
    background: linear-gradient(90deg, var(--orange-400), var(--orange-600)) !important;
    border-radius: var(--radius-full) !important;
}

/* Wealth / points pills */
.user-w-gold .user-money,
.user-w-gold .user-credit {
    color: var(--orange-700) !important;
    background: var(--orange-50) !important;
    border-radius: var(--radius-md) !important;
}
.user-w-gold .user-money a,
.user-w-gold .user-credit a { color: var(--orange-700) !important; }

/* "NEW" badge on Promotion / Task / Verify / Blacklist */
.menu-new,
i.menu-new {
    background: var(--orange-500) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    font-style: normal;
}

/* Dropdown menu items */
.top-user-box-drop ul li a,
.top-user-box-drop ul li a p { color: var(--color-text) !important; }
.top-user-box-drop ul li a:hover { background: var(--orange-50) !important; }
.top-user-box-drop ul li a:hover p,
.top-user-box-drop ul li a:hover .top-user-link-des {
    color: var(--orange-700) !important;
}
.top-user-link-des { color: var(--color-muted) !important; }

/* Logout corner button */
.login-out a,
.login-out a i { color: var(--color-muted) !important; }
.login-out a:hover,
.login-out a:hover i { color: var(--orange-700) !important; }

/* ============================================================
   (u) RIGHT FLOATING TOOLBAR (.aside-bar)
   ============================================================ */
.aside-container { z-index: var(--z-sticky); }
.aside-bar { width: 44px !important; }
.bar-normal,
.bar-footer {
    background: var(--surface-1) !important;
    border: 1px solid var(--color-border) !important;
    border-right: none !important;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    box-shadow: var(--elev-3) !important;
}
.aside-bar > div > div + div {
    border-top: 1px solid var(--border-light) !important;
}
.bar-item i { color: var(--color-text-2) !important; }
.bar-item:hover i,
.bar-item.active i { color: var(--orange-700) !important; }
.bar-item:hover,
.bar-item.active { background: var(--orange-50) !important; }
.bar-item-desc {
    background: var(--dark-600) !important;
    color: #fff !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
    box-shadow: var(--elev-3) !important;
}

/* "Gift" promo (was blue) */
.gdd-quick-link-buy-vip,
.gdd-quick-link-buy-vip__hover-block {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500)) !important;
    color: #fff !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}
.gdd-quick-link-buy-vip p,
.gdd-quick-link-buy-vip__hover-block p { color: #fff !important; }
.gdd-quick-link-buy-vip__popover {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--elev-4) !important;
}
.gdd-quick-link-buy-vip__popover--title { color: var(--color-text) !important; }
.gdd-quick-link-buy-vip__popover--desc  { color: var(--color-muted) !important; }
.gdd-quick-link-buy-vip__popover--btn {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
}

/* Blue qrcode tooltip backgrounds */
.bar-qrcode-box {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
}

/* ============================================================
   (v) FINAL BLUE-NUKE — catch any literal hex residues from B2
   ============================================================ */
[style*="#188ef4"],
[style*="#0056f3"],
[style*="#2b76ff"],
[style*="#0084ff"],
[style*="#2196f3"] {
    color: var(--color-primary) !important;
}
.b2-color-blue,
.text-primary,
.text-color {
    color: var(--color-primary) !important;
}

/* ============================================================
   (w) SINGLE HEADER — B2's bar is now the only header.
   Make it sticky, give it a comfortable min-height, and respect
   the iOS safe-area inset.
   ============================================================ */
.site-header,
.site-header.mg-b,
.site-header-in {
    position: sticky !important;
    top: 0 !important;
    z-index: var(--z-header) !important;
}
.site-header-in {
    padding-top: env(safe-area-inset-top) !important;
    min-height: 64px !important;
}
.header-banner,
.header,
.social-top { gap: 16px; }

/* ============================================================
   (x) SEARCH PILL — polish the Article+Search field
   ============================================================ */
.top-search {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--radius-full) !important;
    padding: 4px 6px 4px 12px !important;
    box-shadow: none !important;
}
.top-search:focus-within {
    border-color: var(--orange-400) !important;
    box-shadow: 0 0 0 3px rgba(212, 132, 90, 0.25) !important;
}
.top-search input,
.search-input.b2-radius,
input.search-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
}
.top-search-select {
    color: rgba(255, 255, 255, 0.85) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding-right: 8px !important;
    margin-right: 6px !important;
}
.top-search-select i,
.top-search-select svg {
    color: rgba(255, 255, 255, 0.85) !important;
    fill: currentColor !important;
}
.search-button-action,
.top-search-button button,
.top-search button {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    border-radius: var(--radius-full) !important;
    width: 32px;
    height: 32px;
    border: none !important;
}
.search-button-action i,
.top-search-button button i,
.top-search button i { color: #fff !important; fill: #fff !important; }

/* ============================================================
   (y) AVATAR DROPDOWN — full-leaf de-blue
   Strengthens block (t) by forcing every text/icon node and the
   --b2color call-sites inside B2's dropdown to AITYKE tokens.
   ============================================================ */
.top-user-box-drop,
.top-user-box-drop *,
.new-dmsg-list,
.new-dmsg-list *,
.user-info-list,
.user-info-list *,
.jt.b2-radius,
.jt.b2-radius * {
    border-color: var(--color-border) !important;
}
.top-user-box-drop p,
.top-user-box-drop span,
.top-user-box-drop b,
.top-user-box-drop h2,
.top-user-box-drop a,
.top-user-info-box-count,
.top-user-info-box-count *,
.top-user-info-box .top-user-info-box-name,
.top-user-info-box .top-user-info-box-name *,
.top-my-home,
.top-my-home p,
.top-user-name,
.top-user-name * {
    color: var(--color-text) !important;
}
.top-user-link-des,
.top-user-box-drop .top-user-link-des,
.top-user-box-drop p span.top-user-link-des {
    color: var(--color-muted) !important;
}
.top-user-box-drop i,
.top-user-box-drop a i,
.top-user-box-drop a i.b2font,
.top-user-box-drop li a i {
    color: var(--color-text-2) !important;
    fill: currentColor !important;
}
.top-user-box-drop li a:hover,
.top-user-box-drop li a:hover *,
.top-user-box-drop li a:hover i {
    color: var(--orange-700) !important;
}
.top-user-info-box .user-w-gold a,
.top-user-info-box .user-w-gold a *,
.bar-user-info-row .user-w-gold a,
.bar-user-info-row .user-w-gold a * {
    color: var(--orange-700) !important;
}

/* ============================================================
   (z) WIDGET BODIES — de-blue the bottom 'footer' card and any
   sidebar widget content. B2's widget rules use --b2color on
   inner text/links; force AITYKE tokens here.
   ============================================================ */
.widget,
.widget p,
.widget li,
.widget span,
.widget b,
.widget h1, .widget h2, .widget h3, .widget h4,
.about-widget,
.about-widget p,
.about-widget *,
.links-widget,
.links-widget li,
.links-widget li *,
.links-widget p,
.recommended-widget li,
.recommended-widget li *,
.history-widget li,
.history-widget li *,
.hot-circle-widget li,
.hot-circle-widget li *,
.comment-widget li,
.comment-widget li * {
    color: var(--color-text) !important;
}
.widget a,
.about-widget a,
.links-widget a,
.recommended-widget a,
.history-widget a,
.hot-circle-widget a,
.comment-widget a {
    color: var(--color-text) !important;
}
.widget a:hover,
.about-widget a:hover,
.links-widget a:hover,
.recommended-widget a:hover,
.history-widget a:hover,
.hot-circle-widget a:hover,
.comment-widget a:hover {
    color: var(--orange-700) !important;
}
.widget-title { color: var(--color-text) !important; }
.widget-title::before,
.widget-title i { color: var(--orange-600) !important; }

.aityke-footer-grid .widget,
.aityke-footer-grid .widget * { color: var(--color-text) !important; }
.aityke-footer-grid .widget a:hover { color: var(--orange-700) !important; }

/* ============================================================
   (aa) ARTICLE BODY LINKS — orange instead of B2 blue
   ============================================================ */
.entry-content a,
.b2-content a,
.aityke-content .card-body a,
.aityke-content article a {
    color: var(--orange-700) !important;
    text-decoration-color: var(--orange-300) !important;
}
.entry-content a:hover,
.b2-content a:hover,
.aityke-content .card-body a:hover,
.aityke-content article a:hover {
    color: var(--orange-600) !important;
    text-decoration-color: var(--orange-500) !important;
}

/* ============================================================
   (bb) HEADER / CONTENT SPACING
   The B2 bar is sticky at top:0; give the first content card
   breathing room below it and stop in-page anchors from being
   hidden underneath when scrolled to.
   ============================================================ */
#content.site-content,
.site-content { padding-top: var(--sp-6) !important; }
@media (max-width: 768px) {
    #content.site-content,
    .site-content { padding-top: var(--sp-4) !important; }
}
.site-content > *,
.aityke-page-main,
.aityke-container { scroll-margin-top: 88px; }

.aityke-page-main.b2-content,
.aityke-page-main.b2-single-content {
    margin-top: 0 !important;
}

/* ============================================================
   (cc) SEARCH BUTTON + SEARCH-TYPE POPUP — final de-blue
   Header.php emits the action button as .search-button-action
   and the type popup as .header-search-select.b2-radius
   (lines 188 / 198 / 204 in b2/Modules/Templates/Header.php).
   ============================================================ */
.search-button-action,
.top-search .search-button-action,
.top-search-button button,
.top-search button[type="submit"] {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    fill: #fff !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    box-shadow: var(--elev-1) !important;
}
.search-button-action:hover,
.top-search-button button:hover { filter: brightness(1.05); }
.search-button-action i,
.search-button-action svg,
.top-search-button button i,
.top-search-button button svg {
    color: #fff !important;
    fill: #fff !important;
}

.top-search-select,
.top-search-select span,
.top-search-select i,
.top-search-select svg {
    color: rgba(255, 255, 255, 0.92) !important;
    fill: currentColor !important;
}
.top-search-select:hover,
.top-search-select:hover * {
    color: var(--orange-300) !important;
    fill: currentColor !important;
}

.header-search-select {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--elev-4) !important;
    padding: 6px !important;
    color: var(--color-text) !important;
}
.header-search-select ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-search-select li,
.header-search-select li a,
.header-search-select li span,
.header-search-select * {
    color: var(--color-text) !important;
}
.header-search-select li:hover,
.header-search-select li.active,
.header-search-select li a:hover {
    background: var(--orange-50) !important;
    color: var(--orange-700) !important;
    border-radius: var(--radius-md) !important;
}

/* ============================================================
   (dd) AITYKE SKIN FOR B2's NATIVE COMMENT SYSTEM
   Targets the markup b2/comments.php actually renders so the
   full vue UI (login overlay, in-place avatar, image / draw
   upload, reactions, vote, reply tree) is preserved, only
   re-skinned to AITYKE.
   ============================================================ */
.comments-box,
#comments.comments-area.box,
#comments.comments-area {
    background: var(--surface-1) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--elev-1) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-top: var(--sp-6);
}
.comments-title {
    background: var(--surface-2) !important;
    border-bottom: 1px solid var(--color-border) !important;
    color: var(--color-text) !important;
    padding: 14px 20px !important;
    font-weight: 600;
}
.comments-title .comment-count { color: var(--color-text) !important; }
.comments-title .comment-info span { color: var(--color-muted) !important; }
.comment-auth-mod.comment-auth {
    border-color: var(--orange-300) !important;
    color: var(--orange-700) !important;
}
.comment-auth-mod.comment-mod {
    border-color: var(--gold-400) !important;
    color: var(--gold-700) !important;
}

.comment-form,
#comment-form,
#respond,
.respond {
    background: transparent !important;
    padding: 16px 20px !important;
}
.com-info { display: flex; gap: 12px; }
.com-info-avatar.avatar.b2-radius {
    border-radius: var(--radius-full) !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid var(--surface-raised) !important;
    box-shadow: var(--elev-1) !important;
}
.com-form { flex: 1; }
.com-form-title {
    color: var(--color-muted) !important;
    background: var(--surface-2) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
}
.com-form-title button.text { color: var(--orange-700) !important; }
.com-form-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.com-form-input input {
    flex: 1;
    background: var(--surface-1) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 12px !important;
    color: var(--color-text) !important;
}
.com-form-input input:focus,
.com-form-textarea textarea:focus {
    outline: none !important;
    border-color: var(--orange-400) !important;
    box-shadow: 0 0 0 3px rgba(212, 132, 90, 0.20) !important;
}
.com-form-textarea {
    background: var(--surface-1) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px !important;
}
.com-form-textarea textarea {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: var(--color-text) !important;
    resize: vertical;
    min-height: 96px;
}

.com-form-bottom,
.com-form-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.com-form-bottom button.empty,
.com-form-bottom button:not(.text):not(.empty),
.respond button[type="submit"],
.com-submit,
.submit,
#submit {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 16px !important;
    box-shadow: var(--elev-1) !important;
    cursor: pointer;
}
.com-form-bottom button.text,
.com-form-action button.text {
    background: transparent !important;
    color: var(--color-text-2) !important;
    border: none !important;
}
.com-form-bottom button.text:hover,
.com-form-action button.text:hover { color: var(--orange-700) !important; }

.comment-overlay,
.comment-overlay-hidden {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(2px);
}
.comment-overlay-login {
    background: var(--surface-raised) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--elev-3) !important;
    padding: 20px !important;
    color: var(--color-text) !important;
}
.comment-overlay-login p {
    color: var(--color-text) !important;
    margin-bottom: 12px;
}
.comment-overlay-login button.empty,
.comment-overlay-login button {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 18px !important;
}

.comment-list {
    margin: 0 !important;
    padding: 0 !important;
}
.comment-list .comment .comment-item {
    padding: 18px 20px 18px 72px !important;
    border-top: 1px solid var(--color-border) !important;
    background: transparent !important;
}
.comment-list .comment .gravatar {
    left: 20px !important;
    top: 18px !important;
}
.comment-list .comment .gravatar img { border-radius: var(--radius-full) !important; }
.comment-meta { color: var(--color-muted) !important; }
.comment-author a,
.comment-author { color: var(--color-text) !important; font-weight: 600; }
.comment-author a:hover { color: var(--orange-700) !important; }
.comment-user-info time { color: var(--color-muted) !important; }
.comment-content-text { color: var(--color-text) !important; }
.comment-content-text p {
    color: var(--color-text) !important;
    margin: 6px 0;
}
.comment-list .comment-footer button.text { color: var(--color-muted) !important; }
.comment-list .comment-footer button.text:hover { color: var(--orange-700) !important; }
.comment-list .comment-footer button.text.voted,
.comment-list .comment-footer button.text.voted i { color: var(--orange-700) !important; }
.comment-list .children article .comment-item {
    background: var(--surface-2) !important;
    border-radius: var(--radius-md) !important;
    margin: 8px 0 8px 40px !important;
}

.sticky-comment {
    background: var(--orange-50) !important;
    border-left: 3px solid var(--orange-500) !important;
    color: var(--orange-700) !important;
    border-radius: var(--radius-md) !important;
    margin: 12px 20px !important;
}
.no-comments {
    color: var(--color-muted) !important;
    padding: 16px 20px !important;
}
