:root {
  --gd39-color-transparent: transparent;
  --gd39-darkify-overlay-rgb: 0, 0, 0;
  --gd39-color-hex-555555: #555;
  --gd39-color-hex-ffff00: #ff0;
  --gd39-color-hex-000000: #000;
  --gd39-color-hex-dddddd: #ddd;
  --gd39-color-hex-333333: #333;
  --gd39-color-hex-ffffff: #fff;
  --gd39-color-hex-eeeeee: #eee;
  --gd39-color-hex-666666: #666;
  --gd39-color-hex-fff9c0: #fff9c0;
  --gd39-color-hex-aaaaaa: #aaa;
  --gd39-color-hex-cccccc: #ccc;
  --gd39-color-hex-777777: #777;
  --gd39-color-hex-3c763d: #3c763d;
  --gd39-color-hex-dff0d8: #dff0d8;
  --gd39-color-hex-d6e9c6: #d6e9c6;
  --gd39-color-hex-31708f: #31708f;
  --gd39-color-hex-d9edf7: #d9edf7;
  --gd39-color-hex-bce8f1: #bce8f1;
  --gd39-color-hex-8a6d3b: #8a6d3b;
  --gd39-color-hex-fcf8e3: #fcf8e3;
  --gd39-color-hex-faebcc: #faebcc;
  --gd39-color-hex-721c24: #721c24;
  --gd39-color-hex-f8d7da: #f8d7da;
  --gd39-color-hex-f5c6cb: #f5c6cb;
  --gd39-color-rgba-0-0-0-15: rgba(0, 0, 0, .15);
  --gd39-color-hex-363636: #363636;
  --gd39-color-hex-f5f5f5: #f5f5f5;
  --gd39-color-hex-f1f1f1: #f1f1f1;
  --gd39-color-rgba-0-0-0-0-6: rgba(0, 0, 0, 0.6);
  --gd39-color-hex-21759b: #21759b;
  --gd39-color-hex-81bd00: #81bd00;
  --gd39-color-hex-3b5998: #3b5998;
  --gd39-color-hex-55acee: #55acee;
  --gd39-color-hex-dd4b39: #dd4b39;
  --gd39-color-hex-007bb5: #007bb5;
  --gd39-color-hex-ff4500: #ff4500;
  --gd39-color-hex-36465d: #36465d;
  --gd39-color-hex-ff0000: #ff0000;
  --gd39-color-hex-fdf497: #fdf497;
  --gd39-color-hex-fd5949: #fd5949;
  --gd39-color-hex-d6249f: #d6249f;
  --gd39-color-hex-285aeb: #285AEB;
  --gd39-color-hex-f7931e: #f7931e;
  --gd39-color-hex-507299: #507299;
  --gd39-color-hex-eaeaea: #eaeaea;
  --gd39-color-rgba-0-0-0-0-7: rgba(0, 0, 0, 0.7);
  --gd39-color-hex-999999: #999;
  --gd39-color-rgba-0-0-0-0-8: rgba(0, 0, 0, 0.8);
  --gd39-color-rgba-0-0-0-0-3: rgba(0, 0, 0, 0.3);
  --gd39-color-rgba-0-0-0-0: rgba(0, 0, 0, 0);
  --gd39-color-rgba-0-0-0-5: rgba(0, 0, 0, .5);
  --gd39-color-hex-111111: #111;
  --gd39-color-hex-252525: #252525;
  --gd39-color-rgba-51-51-51-0-98: rgba(51, 51, 51, 0.98);
  --gd39-color-hex-121116: #121116;
  --gd39-color-hex-171717: #171717;
  --gd39-color-rgb-000-2: rgb(0 0 0 / .2);
  --gd39-color-rgba-51-73-90-0-20: rgba(51, 73, 90, 0.20);
  --gd39-color-hex-888888: #888;
  --gd39-color-hex-e6e6e6: #e6e6e6;
  --gd39-color-hex-222222: #222;
  --gd39-color-rgba-0-0-0-var-dpt-wrapper-shadow-intensity-0: rgba(0, 0, 0, var(--dpt-wrapper-shadow-intensity, 0));
  --gd39-color-rgba-0-0-0-var-dpt-wrapper-shadow-hover-intensity-0: rgba(0, 0, 0, var(--dpt-wrapper-shadow-hover-intensity, 0));
  --gd39-color-rgba-0-0-0-var-dpt-wrapper-entry-shadow-intensity-0: rgba(0, 0, 0, var(--dpt-wrapper-entry-shadow-intensity, 0));
  --gd39-color-rgba-197-197-197-35: rgba(197, 197, 197, .35);
  --gd39-color-hex-f0f0f0: #f0f0f0;
  --gd39-color-rgba-255-255-255-5: rgba(255, 255, 255, .5);
  --gd39-color-rgba-0-0-0-2: rgba(0, 0, 0, .2);
  --gd39-color-hex-1199ff: #19f;
  --gd39-color-hex-fe0467: #FE0467;
  --gd39-color-hex-1c1a1b: #1C1A1B;
  --gd39-color-rgba-255-255-255-0-8: rgba(255, 255, 255, 0.8);
  --gd39-color-hex-ee4040: #EE4040;
  --gd39-color-hex-6c20c2: #6C20C2;
  --gd39-color-hex-444444: #444;
  --gd39-color-hex-1c1c1c: #1c1c1c;
  --gd39-color-hex-191919: #191919;
  --gd39-color-hex-bebebe: #BEBEBE;
  --gd39-color-hex-e7e7e7: #E7E7E7;
  --gd39-color-hex-2d2d2d: #2D2D2D;
  --gd39-color-hex-3a3a3a: #3A3A3A;
  --gd39-color-hex-d50356: #d50356;
  --gd39-color-rgba-0-0-0-0-25: rgba(0, 0, 0, 0.25);
  --gd39-color-hex-1a1a1a: #1a1a1a;
  --gd39-color-hex-e00458: #e00458;
  --gd39-color-rgba-0-0-0-0-5: rgba(0, 0, 0, 0.5);
  --gd39-color-hex-2a2a2a: #2a2a2a;
  --gd39-color-rgba-254-4-103-0-2: rgba(254, 4, 103, 0.2);
  --gd39-color-rgba-254-4-103-0-15: rgba(254, 4, 103, 0.15);
  --gd39-color-rgba-254-4-103-0-25: rgba(254, 4, 103, 0.25);
  --gd39-color-rgba-254-4-103-0-5: rgba(254, 4, 103, 0.5);
  --gd39-color-rgba-254-4-103-0-1: rgba(254, 4, 103, 0.1);
  --gd39-color-hex-d97706: #d97706;
  --gd39-color-hex-fbbf24: #fbbf24;
  --gd39-color-rgba-254-4-103-0-3: rgba(254, 4, 103, 0.3);
  --gd39-color-rgba-15-15-15-0-96: rgba(15, 15, 15, 0.96);
  --gd39-color-rgba-254-4-103-0-35: rgba(254, 4, 103, 0.35);
  --gd39-color-hex-d90356: #d90356;
  --gd39-color-rgba-0-0-0-0-08: rgba(0, 0, 0, 0.08);
  --gd39-color-rgba-255-255-255-0-12: rgba(255, 255, 255, 0.12);
  --gd39-color-hex-e2e8f0: #e2e8f0;
  --gd39-color-rgba-0-0-0-0-05: rgba(0, 0, 0, 0.05);
  --gd39-color-rgba-0-0-0-0-4: rgba(0, 0, 0, 0.4);
  --gd39-color-hex-f8fafc: #f8fafc;
  --gd39-color-hex-cbd5e1: #cbd5e1;
  --gd39-color-hex-101010: #101010;
  --gd39-color-rgba-16-185-129-0-15: rgba(16, 185, 129, 0.15);
  --gd39-color-hex-10b981: #10b981;
  --gd39-color-hex-047857: #047857;
  --gd39-color-hex-34d399: #34d399;
  --gd39-color-rgba-239-68-68-0-15: rgba(239, 68, 68, 0.15);
  --gd39-color-hex-ef4444: #ef4444;
  --gd39-color-hex-b91c1c: #b91c1c;
  --gd39-color-hex-f87171: #f87171;
  --gd39-color-rgba-254-4-103-0-03: rgba(254, 4, 103, 0.03);
  --gd39-color-rgba-254-4-103-0-05: rgba(254, 4, 103, 0.05);
  --gd39-color-rgba-254-4-103-0-02: rgba(254, 4, 103, 0.02);
  --gd39-color-hex-0d95e8: #0d95e8;
  --gd39-color-hex-1da1f2: #1da1f2;
  --gd39-color-hex-1e1e1e: #1e1e1e;
  --gd39-color-hex-344e86: #344e86;
  --gd39-color-hex-4e4e4e: #4e4e4e;
  --gd39-color-hex-4ea7f9: #4ea7f9;
  --gd39-color-hex-5d5b5b: #5d5b5b;
  --gd39-color-hex-aa0719: #aa0719;
  --gd39-color-hex-bd081d: #bd081d;
  --gd39-color-hex-d7d7d7: #d7d7d7;
  --gd39-color-hex-e5e3df: #e5e3df;
  --gd39-color-hex-f2f4f6: #f2f4f6;
  --gd39-color-hex-f4f4f4: #f4f4f4;
  --gd39-color-hex-121212: #121212;
  --gd39-color-hex-262626: #262626;
  --gd39-color-rgba-0-0-0-0-1: rgba(0, 0, 0, .1);
  --gd39-color-rgba-30-30-30-0-6: rgba(30, 30, 30, .6);
  --gd39-color-rgba-255-255-255-0-3: rgba(255, 255, 255, .3);
  --gd39-color-rgba-99-99-99-0-5: rgba(99, 99, 99, .5);
  --gd39-light-bg: var(--gd39-color-hex-eeeeee);
  --gd39-light-surface: var(--gd39-color-hex-ffffff);
  --gd39-light-text: var(--gd39-color-hex-333333);
  --gd39-light-muted: var(--gd39-color-hex-666666);
  --gd39-dark-bg: var(--gd39-color-hex-121116);
  --gd39-dark-surface: var(--gd39-color-hex-1a1a1a);
  --gd39-dark-text: var(--gd39-color-hex-e7e7e7);
  --gd39-dark-muted: var(--gd39-color-hex-bebebe);
  --gd39-text-on-accent: var(--gd39-color-hex-ffffff);
  --gd39-bg: var(--gd39-light-bg);
  --gd39-surface: var(--gd39-light-surface);
  --gd39-text: var(--gd39-light-text);
  --gd39-muted: var(--gd39-light-muted);
}

html.darkify_dark_mode_enabled {
    --gd39-bg: var(--gd39-dark-bg);
    --gd39-surface: var(--gd39-dark-surface);
    --gd39-text: var(--gd39-dark-text);
    --gd39-muted: var(--gd39-dark-muted);
}

/*
Theme Name: 39. Doeda HD
Author: FV Team
Description: DoedaHD Video Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: doedahd
*/

/* Main styles are loaded from assets/css/style.css via functions.php */

/* ========================================
   DoedaHD Theme Overrides
   Brand color: #FE0467

   STRATEGY: Desktop-first (breakpoints ở assets/css/style.css)

   !important RULES:
   - CHỈ dùng cho: color, background, border-color, box-shadow
     (vì darkify.css dùng !important cho darkify_style_* classes)
   - KHÔNG dùng cho: position, width, height, display, margin, padding,
     flex, border-radius, cursor, text-decoration, transition
     (để media queries trong base CSS hoạt động đúng)
   ======================================== */


/* Video thumbnail aspect ratio - using backend variable */
.thumb-block .post-thumbnail {
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
	height: auto !important;
    overflow: hidden;
}

.thumb-block .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Accent color - links and hover */
a,
.site-title a i,
.thumb-block:hover span.title,
.categories-list .thumb-block:hover .entry-header .cat-title:before,
.required,
.post-like a:hover i,
.top-bar i:hover,
.menu-toggle i,
.main-navigation.toggled li:hover>a,
.main-navigation.toggled li.focus>a,
.main-navigation.toggled li.current_page_item>a,
.main-navigation.toggled li.current-menu-item>a,
#filters .filters-select:after,
.top-bar .membership a i,
.thumb-block:hover .photos-count i,
.aside-filters span:hover a,
.aside-filters span:hover a i,
.filters a.active,
.filters a:hover,
.archive-aside a:hover,
#video-links a:hover,
#video-links a:hover i,
.video-share .video-share-url a#clickme:hover,
a#show-sharing-buttons.active,
a#show-sharing-buttons.active i,
.morelink:hover,
.morelink:hover i,
.footer-menu-container a:hover,
.categories-list .thumb-block:hover .entry-header span,
.tags-letter-block .tag-items .tag-item a:hover,
.menu-toggle-open,
.search-open {
    color: var(--gd39-color-hex-fe0467);
}

/* Background color */
button:not(.server-btn):not(.mobile-theme-btn):not(.mobile-nav-close),
.button,
.btn,
input[type="button"],
input[type="reset"],
input[type="submit"],
.pagination ul li a.current,
.pagination ul li a:hover,
body #filters .label.secondary.active,
.label.secondary:hover,
.widget_categories ul li a:hover,
a.tag-cloud-link:hover,
.template-actors li a:hover,
.rating-bar-meter,
.vjs-play-progress,
#filters .filters-options span:hover,
.top-bar .social-share a:hover,
.thumb-block:hover span.hd-video,
.label:hover,
.label:focus,
.label:active,
.mobile-pagination .pagination-nav span,
.mobile-pagination .pagination-nav a {
    background-color: var(--gd39-color-hex-fe0467) !important;
}

/* Border color */
#video-tabs button.tab-link.active,
.page-title,
.page .entry-title,
.comments-title,
.comment-reply-title,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
.filters a.active {
    border-color: var(--gd39-color-hex-fe0467) !important;
}

ul li.current-menu-item a {
    border-bottom-color: var(--gd39-color-hex-fe0467) !important;
}

/* Dark mode overrides for active menu item */
.darkify_dark_mode_enabled #site-navigation ul li.current-menu-item a {
    border-bottom-color: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-color-hex-fe0467) !important;
}

.video-js .vjs-big-play-button {
    background-color: var(--gd39-color-hex-fe0467) !important;
    border-color: var(--gd39-color-hex-fe0467) !important;
}

/* Theme specific styles */
.post-thumbnail {
    aspect-ratio: 16/9;
    height: auto !important;
}

.post-thumbnail video,
.post-thumbnail img {
    object-fit: cover;
}

body.custom-background {
    background-color: var(--gd39-bg) !important;
}

.site-branding .logo img {
    max-width: 280px;
    max-height: 90px;
    margin-top: -5px;
    margin-left: 0px;
}

/* Disclaimer modal */
#dclm_modal_screen {
    background-color: var(--gd39-color-rgba-255-255-255-0-8);
}

#dclm_modal_content {
    background-color: var(--gd39-color-hex-ffffff);
}

#dclm_modal_content h2 {
    color: var(--gd39-light-text);
}

#dclm_modal_content p {
    color: var(--gd39-light-muted);
}

#dclm_modal_content nav .av_go {
    background-color: var(--gd39-color-hex-ee4040) !important;
}

#dclm_modal_content nav .av_no {
    background-color: var(--gd39-color-hex-6c20c2) !important;
}

#dclm-logo img {
    opacity: 1;
}

/* Autocomplete dropdown */
#autocomplete-results {
    position: absolute;
    background: var(--gd39-color-hex-222222);
    border: 1px solid var(--gd39-color-hex-444444);
    border-top: none;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

#autocomplete-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#autocomplete-results li a {
    display: block;
    padding: 10px;
    color: var(--gd39-color-hex-ffffff);
    text-decoration: none;
}

#autocomplete-results li a:hover {
    background: var(--gd39-color-hex-333333);
}

/* Darkify dark mode CSS variables */
:root {
    --darkify_dark_mode_bg: var(--gd39-dark-bg);
    --darkify_dark_mode_secondary_bg: var(--gd39-dark-surface);
    --darkify_dark_mode_text_color: var(--gd39-dark-muted);
    --darkify_dark_mode_link_color: var(--gd39-dark-text);
    --darkify_dark_mode_link_hover_color: var(--gd39-color-hex-fe0467);
    --darkify_dark_mode_input_bg: var(--gd39-color-hex-2d2d2d);
    --darkify_dark_mode_input_text_color: var(--gd39-dark-muted);
    --darkify_dark_mode_input_placeholder_color: var(--gd39-color-hex-888888);
    --darkify_dark_mode_border_color: var(--gd39-color-hex-333333);
    --darkify_dark_mode_btn_text_color: var(--gd39-dark-text);
    --darkify_dark_mode_btn_bg: var(--gd39-color-hex-333333);
    --darkify_dark_mode_btn_text_hover_color: var(--gd39-dark-text);
    --darkify_dark_mode_btn_hover_bg: var(--gd39-color-hex-3a3a3a);
}

/* Single video page — sidebar chỉ áp dụng cho video-player-area,
   không dùng global margin-left */
body.single .site-main.with-aside {
    margin-left: 0;
}

body.single .site-content {
    padding: 0;
}

/* Video sidebar layout — flexbox wrapper */
.video-sidebar-layout {
    display: flex;
}

.video-sidebar-layout .archive-aside {
    float: none;
    margin-left: 0;
    width: 200px;
    flex-shrink: 0;
    padding: 20px 15px;
}

.video-sidebar-layout .video-player-area {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .video-sidebar-layout {
        display: block;
    }
    .video-sidebar-layout .archive-aside {
        display: none;
    }
}

/* Dark mode cho trang single video */
.darkify_dark_mode_enabled.single .entry-content,
.darkify_dark_mode_enabled.single .under-video-block {
    background: var(--darkify_dark_mode_bg);
}

/* =============================================
   CSS from Legacy Video Page
   ============================================= */

/* Video description - display full content */
.video-description .desc,
.video-description .desc.more {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.video-description a.morelink {
    display: none !important;
}

/* Single profil video description */
.single-profil .video-description .desc,
.single-profil .video-description .desc.more {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.single-profil .video-description .desc ul,
.single-profil .video-description .wp-block-gallery ul.blocks-gallery-grid {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.single-profil .video-description .wp-block-gallery,
.single-profil .video-description .blocks-gallery-grid,
.single-profil .video-description .blocks-gallery-item,
.single-profil .video-description .wp-block-gallery img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.single-profil .video-description .wp-block-gallery .blocks-gallery-item:first-child,
.single-profil .video-description .wp-block-gallery .wp-block-image:first-child {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.single-profil .video-description a.morelink {
    display: none !important;
}

/* Lazy loaded images */
img.lazyloaded {
    opacity: 1 !important;
}

/* =============================================
   BACK TO TOP BUTTON FIX
   ============================================= */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999 !important;
    width: 50px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    text-align: center;
    background: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-text-on-accent) !important;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 2px 10px var(--gd39-color-rgba-0-0-0-0-3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    background: var(--gd39-color-hex-d50356) !important;
    transform: translateY(-3px);
}

#back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#back-to-top i {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    color: var(--gd39-color-hex-ffffff) !important;
}

/* Mobile override — must be here because style.css loads AFTER base CSS,
   so the global right:40px above would otherwise override base media query */
@media (max-width: 425px) {
    #back-to-top {
        right: 10px;
        bottom: 20px;
    }
}

/* =============================================
   AUTOCOMPLETE DROPDOWN - Do not modify parent
   ============================================= */
#autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 40px;
    /* Minus submit button width */
    background: var(--gd39-color-hex-ffffff);
    border: 1px solid var(--gd39-color-hex-dddddd);
    border-radius: 4px;
    margin-top: 2px;
    box-shadow: 0 8px 24px var(--gd39-color-rgba-0-0-0-0-25);
    z-index: 999999 !important;
    /* Higher than all elements */
    max-height: 350px;
    overflow-y: auto;
}

#autocomplete-results .ac-item {
    display: block;
    padding: 10px 15px;
    color: var(--gd39-light-text);
    text-decoration: none;
    border-bottom: 1px solid var(--gd39-color-hex-eeeeee);
}

#autocomplete-results .ac-item:last-child {
    border-bottom: none;
}

#autocomplete-results .ac-item:hover {
    background: var(--gd39-color-hex-f5f5f5);
    color: var(--gd39-color-hex-fe0467);
}

/* Dark mode */
.darkify_dark_mode_enabled #autocomplete-results {
    background: var(--gd39-color-hex-222222);
    border-color: var(--gd39-color-hex-444444);
}

.darkify_dark_mode_enabled #autocomplete-results .ac-item {
    color: var(--gd39-color-hex-eeeeee);
    border-bottom-color: var(--gd39-color-hex-333333);
}

.darkify_dark_mode_enabled #autocomplete-results .ac-item:hover {
    background: var(--gd39-color-hex-333333);
    color: var(--gd39-color-hex-fe0467);
}

/* =============================================
   AUTOCOMPLETE DROPDOWN (Created by JS - #ac-dropdown)
   ============================================= */
#ac-dropdown {
    scrollbar-width: thin;
    scrollbar-color: var(--gd39-color-hex-fe0467) var(--gd39-color-hex-1a1a1a);
}

#ac-dropdown::-webkit-scrollbar {
    width: 6px;
}

#ac-dropdown::-webkit-scrollbar-track {
    background: var(--gd39-color-hex-1a1a1a);
    border-radius: 3px;
}

#ac-dropdown::-webkit-scrollbar-thumb {
    background: var(--gd39-color-hex-fe0467);
    border-radius: 3px;
}

#ac-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--gd39-color-hex-e00458);
}

#ac-dropdown .ac-item:hover {
    background: var(--gd39-color-hex-f0f0f0) !important;
    color: var(--gd39-color-hex-fe0467) !important;
}

/* Dark mode cho #ac-dropdown */
.darkify_dark_mode_enabled #ac-dropdown {
    scrollbar-color: var(--gd39-color-hex-fe0467) var(--gd39-color-hex-333333);
}

.darkify_dark_mode_enabled #ac-dropdown::-webkit-scrollbar-track {
    background: var(--gd39-color-hex-333333);
}

.darkify_dark_mode_enabled #ac-dropdown .ac-item:hover {
    background: var(--gd39-color-hex-444444) !important;
    color: var(--gd39-color-hex-fe0467) !important;
}

/* =============================================
   MOBILE NAVIGATION OVERLAY
   ============================================= */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--gd39-color-hex-ffffff);
    z-index: 999999;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 20px var(--gd39-color-rgba-0-0-0-0-3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-text-on-accent);
    flex-shrink: 0;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-close {
    background: var(--gd39-color-transparent);
    border: none;
    color: var(--gd39-text-on-accent);
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.mobile-nav-close:hover {
    opacity: 0.8;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-nav-menu li a {
    display: block;
    padding: 14px 20px;
    color: var(--gd39-light-text);
    text-decoration: none;
    border-bottom: 1px solid var(--gd39-color-hex-eeeeee);
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-menu li.active a,
.mobile-nav-menu li a:hover,
.mobile-nav-menu li a:focus {
    background: var(--gd39-color-hex-f5f5f5) !important;
    color: var(--gd39-color-hex-fe0467) !important;
}

.mobile-nav-menu li a i {
    margin-right: 10px;
    color: var(--gd39-color-hex-fe0467);
}

/* Mobile nav backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--gd39-color-rgba-0-0-0-0-5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Dark mode cho mobile nav */
.darkify_dark_mode_enabled .mobile-nav-overlay {
    background: var(--gd39-color-hex-1c1c1c);
}

.darkify_dark_mode_enabled .mobile-nav-menu li a {
    color: var(--gd39-color-hex-eeeeee);
    border-bottom-color: var(--gd39-color-hex-333333);
}

.darkify_dark_mode_enabled .mobile-nav-menu li.active a,
.darkify_dark_mode_enabled .mobile-nav-menu li a:hover,
.darkify_dark_mode_enabled .mobile-nav-menu li a:focus {
    background: var(--gd39-color-hex-333333) !important;
    color: var(--gd39-color-hex-fe0467) !important;
}

/* Mobile dark mode toggle */
.mobile-darkmode-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: var(--gd39-color-hex-2a2a2a);
    border-bottom: 1px solid var(--gd39-color-hex-444444);
    list-style: none;
}

.mobile-theme-btn {
    background: var(--gd39-color-transparent);
    border: 2px solid var(--gd39-color-hex-fe0467);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-theme-btn:hover {
    background: var(--gd39-color-rgba-254-4-103-0-2);
}

.mobile-theme-btn i {
    font-size: 20px;
    color: var(--gd39-color-hex-fe0467);
}

/* Dark mode: show sun icon (to switch to light) */
.mobile-theme-btn .toggle-light-icon {
    display: inline-block;
}

.mobile-theme-btn .toggle-dark-icon {
    display: none;
}

/* Light mode: show moon icon (to switch to dark) */
html:not(.darkify_dark_mode_enabled) .mobile-darkmode-toggle {
    background: var(--gd39-color-hex-f0f0f0);
    border-bottom-color: var(--gd39-color-hex-dddddd);
}

html:not(.darkify_dark_mode_enabled) .mobile-theme-btn .toggle-light-icon {
    display: none;
}

html:not(.darkify_dark_mode_enabled) .mobile-theme-btn .toggle-dark-icon {
    display: inline-block;
}

html.darkify_dark_mode_enabled .mobile-darkmode-toggle {
    background: var(--gd39-color-hex-2a2a2a);
    border-bottom-color: var(--gd39-color-hex-444444);
}

/* =============================================
   SIDEBAR KEYWORDS CLOUD
   ============================================= */
.aside-keywords .keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aside-keywords .keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gd39-color-hex-333333);
    color: var(--gd39-dark-text);
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.aside-keywords .keyword-tag:hover {
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-color-hex-ffffff);
}

/* Light mode */
.aside-keywords .keyword-tag {
    background: var(--gd39-color-hex-eeeeee);
    color: var(--gd39-light-text);
}

.aside-keywords .keyword-tag:hover {
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-color-hex-ffffff);
}

/* Dark mode */
.darkify_dark_mode_enabled .aside-keywords .keyword-tag {
    background: var(--gd39-color-hex-333333);
    color: var(--gd39-color-hex-ffffff);
}

.darkify_dark_mode_enabled .aside-keywords .keyword-tag:hover {
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-color-hex-ffffff);
}

/* =============================================
   SIDEBAR BACKLINKS
   ============================================= */
.aside-links .backlinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aside-links .backlinks-list li {
    margin-bottom: 8px;
}

.aside-links .backlinks-list li a {
    display: block;
    padding: 8px 12px;
    background: var(--gd39-color-hex-eeeeee);
    color: var(--gd39-light-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.aside-links .backlinks-list li a:hover {
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-color-hex-ffffff);
}

/* Dark mode */
.darkify_dark_mode_enabled .aside-links .backlinks-list li a {
    background: var(--gd39-color-hex-333333);
    color: var(--gd39-color-hex-eeeeee);
}

.darkify_dark_mode_enabled .aside-links .backlinks-list li a:hover {
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-color-hex-ffffff);
}

/* Dark mode overrides for sidebar categories active state */
.darkify_dark_mode_enabled .archive-aside a.active,
.darkify_dark_mode_enabled .archive-aside a:hover {
    background: var(--gd39-color-hex-333333) !important;
    color: var(--gd39-color-hex-fe0467) !important;
}

/* =============================================
   SERVER SWITCH BUTTONS
   ============================================= */
.server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    justify-content: center;
}

/* Inactive server buttons - Pink outline style */
.server-btn {
    padding: 10px 20px;
    background: var(--gd39-color-transparent);
    color: var(--gd39-color-hex-fe0467);
    border: 2px solid var(--gd39-color-hex-fe0467);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.server-btn:hover {
    background: var(--gd39-color-rgba-254-4-103-0-15);
    box-shadow: 0 2px 8px var(--gd39-color-rgba-254-4-103-0-25);
}

/* Active server button - Solid fill */
.server-btn.active {
    background: var(--gd39-color-hex-fe0467) !important;
    border-color: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-text-on-accent) !important;
    box-shadow: 0 2px 12px var(--gd39-color-rgba-254-4-103-0-5);
}

/* Light mode - same style works well */
body:not(.darkify_dark_mode_enabled) .server-btn {
    background: var(--gd39-color-transparent);
    color: var(--gd39-color-hex-fe0467);
    border-color: var(--gd39-color-hex-fe0467);
}

body:not(.darkify_dark_mode_enabled) .server-btn:hover {
    background: var(--gd39-color-rgba-254-4-103-0-1);
}

body:not(.darkify_dark_mode_enabled) .server-btn.active {
    background: var(--gd39-color-hex-fe0467) !important;
    border-color: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-text-on-accent) !important;
}

/* =============================================
   LIKE BUTTON STATES
   ============================================= */
/* Like button base */
.post-like a {
    transition: all 0.3s ease;
}

/* Liked state - Dark mode */
.post-like a.liked,
.post-like a.liked i,
.post-like a.liked .like,
#btn-like.liked,
#btn-like.liked i {
    color: var(--gd39-color-hex-fe0467) !important;
}

.post-like a.liked .fa-thumbs-up {
    color: var(--gd39-color-hex-fe0467) !important;
    transform: scale(1.1);
}

/* Liked state - Light mode */
body:not(.darkify_dark_mode_enabled) .post-like a.liked,
body:not(.darkify_dark_mode_enabled) .post-like a.liked i,
body:not(.darkify_dark_mode_enabled) #btn-like.liked,
body:not(.darkify_dark_mode_enabled) #btn-like.liked i {
    color: var(--gd39-color-hex-fe0467) !important;
}

/* Loading state */
.post-like a.loading {
    opacity: 0.6;
    pointer-events: none;
}

.post-like a.loading i {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =============================================
   DESKTOP DARK/LIGHT TOGGLE - SVG Visibility
   ============================================= */
/* Orbit toggle: alignment trong nav bar */
#menu-ana-menu-2 > li:first-child {
    display: flex;
    align-items: center;
    padding: 5px 10px 0 0;
}

/* Orbit toggle: fix positioning and icon colors */
/* theme-toggle cần position:relative cho toggle-thumb absolute */
#darkify_switch_shortcode.switch-orbit .theme-toggle {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Toggle track cần position absolute để chứa icons */
#darkify_switch_shortcode.switch-orbit .toggle-track {
    position: absolute;
    top: 0;
    left: -1px;
    right: 0;
    bottom: 0;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    /* GỠ BỎ z-index: 9; hoặc ép về auto để PHÁ vỡ ngục Stacking Context */
    z-index: auto;
    line-height: 0;
    background-color: var(--gd39-color-hex-333333);
    transition: background-color 0.4s;
}

/* Dark mode: track tối hơn để thumb (var(--gd39-color-hex-333333)) vẫn nổi */
html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-track {
    background-color: var(--gd39-color-hex-1a1a1a);
}

/* Thumb tròn — mặc định bên trái (light mode) */
#darkify_switch_shortcode.switch-orbit .toggle-thumb {
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 50%;
    transform: translateY(50%);
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 5px var(--gd39-color-rgba-0-0-0-2);
    background-color: var(--darkify_switch_dark_mode_bg);
    z-index: 10;
}

/* Dark mode: thumb trượt sang phải */
html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-thumb {
    background-color: var(--darkify_switch_light_mode_bg);
    transform: translate(38px, 50%);
}

/* Icons phải nằm TRÊN thumb (z-index 10) để luôn hiển thị */
#darkify_switch_shortcode.switch-orbit .toggle-sun,
#darkify_switch_shortcode.switch-orbit .toggle-moon {
    position: relative;
    /* Do thẻ cha .toggle-track là z-index: auto, z-index: 11 ở đây sẽ cạnh tranh trực tiếp với toggle-thumb(10) và THẮNG */
    z-index: 11;
}

/* Icon colors — cả 2 SVG luôn hiển thị, màu tương phản mạnh */
/* Light mode: sun amber đậm (nổi trên thumb trắng), moon trắng (nổi trên track tối) */
#darkify_switch_shortcode.switch-orbit .toggle-sun svg {
    color: var(--gd39-color-hex-d97706) !important;
    fill: var(--gd39-color-hex-d97706) !important;
}

#darkify_switch_shortcode.switch-orbit .toggle-moon svg {
    color: var(--gd39-dark-text) !important;
    fill: var(--gd39-dark-text) !important;
}

/* Dark mode: sun vàng sáng (nổi trên track tối), moon trắng (nổi trên thumb tối) */
html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-sun svg {
    color: var(--gd39-color-hex-fbbf24) !important;
    fill: var(--gd39-color-hex-fbbf24) !important;
}

html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-moon svg {
    color: var(--gd39-dark-text) !important;
    fill: var(--gd39-dark-text) !important;
}
/* Banner Ads */
.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 20px auto;
    overflow: hidden;    z-index: 100;
}

/* Banner Ads */
.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 20px auto;
    overflow: hidden;    z-index: 100;
}

/* =============================================
   MOBILE SEARCH BAR FIX
   ============================================= */
@media (max-width: 768px) {
    .header-search {
        padding: 0;
        margin: 0;
    }

    .header-search form {
        display: flex;
        width: 100%;
    }

    .header-search input.input-group-field {
        flex: 1;
        min-width: 0;
        height: 44px;
        padding: 0 15px;
        margin: 0;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 44px;
    }

    .header-search input#searchsubmit {
        width: 50px;
        flex-shrink: 0;
        height: 44px;
        line-height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
        font-size: 18px;
    }
}

/* =============================================
   FOOTER THEME TAGS (SEO Links)
   ============================================= */
.footer-theme-tags {
    padding: 20px 30px;
    border-top: 1px solid var(--gd39-color-hex-333333);
}

.theme-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-tag-link {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gd39-color-hex-2a2a2a) !important;
    color: var(--gd39-color-hex-cccccc) !important;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--gd39-color-hex-444444);
    transition: all 0.25s ease;
}

.theme-tag-link:hover {
    background: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-text-on-accent) !important;
    border-color: var(--gd39-color-hex-fe0467) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--gd39-color-rgba-254-4-103-0-3);
}

/* Light mode */
html:not(.darkify_dark_mode_enabled) .footer-theme-tags {
    border-top-color: var(--gd39-color-hex-eeeeee);
}

html:not(.darkify_dark_mode_enabled) .theme-tag-link {
    background: var(--gd39-color-hex-f0f0f0) !important;
    color: var(--gd39-color-hex-555555) !important;
    border-color: var(--gd39-color-hex-dddddd);
}

html:not(.darkify_dark_mode_enabled) .theme-tag-link:hover {
    background: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-color-hex-ffffff) !important;
    border-color: var(--gd39-color-hex-fe0467) !important;
}

/* ===== AGE GATE MODAL CUSTOMIZATIONS ===== */
.doeda-hd-age-gate {
    background: var(--gd39-color-rgba-15-15-15-0-96) !important;
}
.doeda-hd-age-gate__content {
    background: var(--gd39-color-hex-191919) !important;
    border: 1px solid var(--gd39-color-hex-2d2d2d) !important;
    border-radius: 6px !important;
    padding: 40px 30px !important;
    box-shadow: 0 15px 30px var(--gd39-color-rgba-0-0-0-0-6) !important;
}
.doeda-hd-age-gate__badge {
    border: 3px solid var(--gd39-color-hex-fe0467) !important;
    border-radius: 50% !important;
    color: var(--gd39-color-hex-fe0467) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px var(--gd39-color-rgba-254-4-103-0-3) !important;
    box-shadow: 0 0 15px var(--gd39-color-rgba-254-4-103-0-15) !important;
}
.doeda-hd-age-gate__title {
    color: var(--gd39-color-hex-e7e7e7) !important;
    font-weight: 700 !important;
}
.doeda-hd-age-gate__desc {
    color: var(--gd39-color-hex-bebebe) !important;
}
.doeda-hd-age-gate__btn {
    background: var(--gd39-color-hex-fe0467) !important;
    color: var(--gd39-color-hex-ffffff) !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px var(--gd39-color-rgba-254-4-103-0-35) !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
}
.doeda-hd-age-gate__btn:hover {
    background: var(--gd39-color-hex-d90356) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px var(--gd39-color-rgba-254-4-103-0-5) !important;
}
.doeda-hd-age-gate__btn:active {
    transform: translateY(0) !important;
}

/* Policy pages */
.dhd-policy-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 0 0 20px;
    padding: 12px 0;
    border-top: 1px solid var(--gd39-color-rgba-0-0-0-0-08);
    border-bottom: 1px solid var(--gd39-color-rgba-0-0-0-0-08);
    font-size: 13px;
}
html.darkify_dark_mode_enabled .dhd-policy-nav {
    border-top: 1px solid var(--gd39-color-rgba-255-255-255-0-12);
    border-bottom: 1px solid var(--gd39-color-rgba-255-255-255-0-12);
}
.dhd-policy-nav a {
    color: var(--gd39-light-muted);
    transition: color 0.2s ease;
}
html.darkify_dark_mode_enabled .dhd-policy-nav a {
    color: var(--gd39-color-hex-bebebe);
}
.dhd-policy-nav a:hover {
    color: var(--gd39-color-hex-fe0467);
}
.dhd-policy {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
    color: var(--gd39-light-text);
}
html.darkify_dark_mode_enabled .dhd-policy {
    color: var(--gd39-color-hex-e7e7e7);
}
.dhd-policy-card {
    background: var(--gd39-color-hex-ffffff);
    border: 1px solid var(--gd39-color-hex-e2e8f0);
    border-radius: 0;
    padding: 32px;
    line-height: 1.8;
    margin: 0 auto;
    margin-block-end: 20px;
    max-width: 800px;
    box-shadow: 0 4px 20px var(--gd39-color-rgba-0-0-0-0-05);
}
html.darkify_dark_mode_enabled .dhd-policy-card {
    background: var(--gd39-color-hex-191919);
    border: 1px solid var(--gd39-color-hex-2d2d2d);
    box-shadow: 0 15px 30px var(--gd39-color-rgba-0-0-0-0-4);
}
.dhd-policy-card h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--gd39-color-hex-fe0467) 0%, var(--gd39-color-hex-333333) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--gd39-color-transparent);
    background-clip: text;
    color: var(--gd39-color-transparent);
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}
html.darkify_dark_mode_enabled .dhd-policy-card h1:not(.darkify_ignore) {
    background: linear-gradient(135deg, var(--gd39-color-hex-fe0467) 0%, var(--gd39-color-hex-ffffff) 100%);
}
.dhd-policy-card h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gd39-color-hex-fe0467);
    border-radius: 0;
}
.dhd-policy-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--gd39-color-hex-fe0467);
}
.dhd-policy-card p {
    margin-bottom: 16px;
    color: var(--gd39-light-muted);
    font-size: 14px;
}
html.darkify_dark_mode_enabled .dhd-policy-card p {
    color: var(--gd39-color-hex-bebebe);
}
.dhd-policy-card ul, .dhd-policy-card ol {
    margin-bottom: 16px;
    padding-left: 20px;
    color: var(--gd39-light-muted);
    font-size: 14px;
}
html.darkify_dark_mode_enabled .dhd-policy-card ul, 
html.darkify_dark_mode_enabled .dhd-policy-card ol {
    color: var(--gd39-color-hex-bebebe);
}
.dhd-policy-card li {
    margin-bottom: 8px;
}
.dhd-policy-card a {
    color: var(--gd39-color-hex-fe0467);
    text-decoration: underline;
    transition: opacity 0.2s;
}
.dhd-policy-card a:hover {
    opacity: 0.8;
}
.dhd-policy-form {
    display: grid;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.dhd-required {
    color: var(--gd39-color-hex-fe0467);
}

.dhd-policy-note {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.dhd-policy-table th,
.dhd-policy-table td {
    text-align: center;
}

.dhd-policy-table th[scope="row"] {
    font-weight: 500;
}

.dhd-policy-table tbody td:nth-child(4) {
    color: var(--gd39-color-hex-fe0467);
    font-weight: 600;
}
.dhd-policy-form label {
    font-weight: 600;
    font-size: 13px;
    color: var(--gd39-light-text);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
html.darkify_dark_mode_enabled .dhd-policy-form label {
    color: var(--gd39-color-hex-e7e7e7);
}
.dhd-policy-form label.dhd-checkbox-label {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gd39-light-muted);
}
html.darkify_dark_mode_enabled .dhd-policy-form label.dhd-checkbox-label {
    color: var(--gd39-color-hex-bebebe);
}
.dhd-policy-form label.dhd-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}
.dhd-policy-form input:not([type=checkbox]), 
.dhd-policy-form select, 
.dhd-policy-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--gd39-color-hex-f8fafc);
    color: var(--gd39-light-text);
    border: 1px solid var(--gd39-color-hex-cbd5e1);
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
html.darkify_dark_mode_enabled .dhd-policy-form input:not([type=checkbox]), 
html.darkify_dark_mode_enabled .dhd-policy-form select, 
html.darkify_dark_mode_enabled .dhd-policy-form textarea {
    background: var(--gd39-color-hex-101010);
    color: var(--gd39-color-hex-ffffff);
    border: 1px solid var(--gd39-color-hex-2d2d2d);
}
.dhd-policy-form input:focus, 
.dhd-policy-form select:focus, 
.dhd-policy-form textarea:focus {
    border-color: var(--gd39-color-hex-fe0467);
    outline: none;
    box-shadow: 0 0 0 3px var(--gd39-color-rgba-254-4-103-0-15);
}
.dhd-policy-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FE0467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px;
}
.dhd-policy-form textarea {
    min-height: 120px;
    resize: vertical;
}
.dhd-policy-form button {
    width: 100%;
    padding: 12px;
    background: var(--gd39-color-hex-fe0467);
    color: var(--gd39-color-hex-ffffff);
    border: 0;
    font-weight: 700;
    font-size: 15px;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--gd39-color-rgba-254-4-103-0-35);
    transition: background-color 0.2s, transform 0.1s;
}
.dhd-policy-form button:hover {
    background: var(--gd39-color-hex-d90356);
}
.dhd-policy-form button:active {
    transform: translateY(1px);
}
.dhd-form-status-box {
    display: none;
    padding: 12px;
    border-radius: 0;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}
.dhd-status-success {
    display: block;
    background: var(--gd39-color-rgba-16-185-129-0-15);
    border: 1px solid var(--gd39-color-hex-10b981);
    color: var(--gd39-color-hex-047857);
}
html.darkify_dark_mode_enabled .dhd-status-success {
    color: var(--gd39-color-hex-34d399);
}
.dhd-status-error {
    display: block;
    background: var(--gd39-color-rgba-239-68-68-0-15);
    border: 1px solid var(--gd39-color-hex-ef4444);
    color: var(--gd39-color-hex-b91c1c);
}
html.darkify_dark_mode_enabled .dhd-status-error {
    color: var(--gd39-color-hex-f87171);
}
.dhd-policy-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid var(--gd39-color-hex-e2e8f0);
    border-radius: 0;
}
html.darkify_dark_mode_enabled .dhd-policy-table-wrapper {
    border: 1px solid var(--gd39-color-hex-2d2d2d);
}
.dhd-policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.dhd-policy-table caption {
    padding: 14px;
    font-weight: 700;
    color: var(--gd39-light-text);
    background: var(--gd39-color-rgba-254-4-103-0-03);
    border-bottom: 1px solid var(--gd39-color-hex-e2e8f0);
    text-align: left;
}
html.darkify_dark_mode_enabled .dhd-policy-table caption {
    color: var(--gd39-color-hex-ffffff);
    background: var(--gd39-color-rgba-254-4-103-0-05);
    border-bottom: 1px solid var(--gd39-color-hex-2d2d2d);
}
.dhd-policy-table th, .dhd-policy-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gd39-color-hex-e2e8f0);
    color: var(--gd39-light-muted);
}
html.darkify_dark_mode_enabled .dhd-policy-table th, 
html.darkify_dark_mode_enabled .dhd-policy-table td {
    border-bottom: 1px solid var(--gd39-color-hex-2d2d2d);
    color: var(--gd39-color-hex-bebebe);
}
.dhd-policy-table th {
    background: var(--gd39-color-hex-f8fafc);
    font-weight: 700;
    color: var(--gd39-light-text);
}
html.darkify_dark_mode_enabled .dhd-policy-table th {
    background: var(--gd39-color-rgba-254-4-103-0-02);
    color: var(--gd39-color-hex-ffffff);
}
.dhd-policy-table tbody tr:last-child th, .dhd-policy-table tbody tr:last-child td {
    border-bottom: 0;
}
.dhd-policy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 25px;
}
.dhd-policy-stat-card {
    padding: 16px;
    background: var(--gd39-color-hex-f8fafc);
    border: 1px solid var(--gd39-color-hex-e2e8f0);
    border-radius: 0;
    text-align: center;
}
html.darkify_dark_mode_enabled .dhd-policy-stat-card {
    background: var(--gd39-color-rgba-254-4-103-0-05);
    border: 1px solid var(--gd39-color-hex-2d2d2d);
}
.dhd-policy-stat-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gd39-light-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
html.darkify_dark_mode_enabled .dhd-policy-stat-card span {
    color: var(--gd39-color-hex-bebebe);
}
.dhd-policy-stat-card b {
    font-size: 24px;
    font-weight: 800;
    color: var(--gd39-color-hex-fe0467);
}
@media (max-width: 600px) {
    .dhd-policy-card {
        padding: 20px;
    }
    .dhd-policy-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
