/* Global scroll and layout reset to prevent horizontal overflow on mobile */
html,
body {
    max-width: 100vw;
    overflow-x: hidden !important;
    /* Stack de fuentes del sistema optimizado */
    --ch-font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-family: var(--ch-font-system);
    /* Changed from clip to hidden for better legacy support */
    position: relative;
    margin: 0;
    padding: 0;
}

/* Responsive YouTube Videos (Gutenberg Optimized) */
figure.wp-block-embed-youtube,
figure.wp-block-embed.is-type-video,
.wp-block-embed__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
    display: block !important;
}

iframe[src*="youtube.com"],
iframe[src*="youtube-nocookie.com"],
iframe[src*="youtu.be"] {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 16px;
    border: none;
    display: block;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

/* Accessibility: Visually Hidden for Screen Readers */
.ch-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Accessible Focus States */
:focus-visible {
    outline: 2px solid #f95430 !important;
    outline-offset: 3px !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none !important;
}

/* Neutralización Universal de Fuentes (Menos agresiva para permitir Elementor) */
*:not(.fa):not(.fas):not(.fab):not(.far):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.eicons):not([class*="fa-"]):not([class*="eicon-"]),
[class*="elementor"] *:not(.fa):not(.fas):not(.fab):not(.far):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.eicons):not([class*="fa-"]):not([class*="eicon-"]),
[class*="comunidadhub"] *:not(.fa):not(.fas):not(.fab):not(.far):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.eicons):not([class*="fa-"]):not([class*="eicon-"]),
.elementor-element:not(.fa):not(.fas):not(.fab):not(.far):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.eicons):not([class*="fa-"]):not([class*="eicon-"]) {
    font-family: var(--ch-font-system);
}

/* Protección explícita para Iconos (Asegura que no se sobrescriban) */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
[class*="fa-"],
.eicons,
[class*="eicon-"] {
    font-family: inherit;
    /* Permite que el CSS de FA/Elementor tome el control */
}

.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
}


#page,
.site,
.elementor {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

*,
::before,
::after {
    box-sizing: border-box;
}

/* Global Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    /* Slimmer for modern look */
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #1e1e1e;
    /* Dark almost black */
    border-radius: 10px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #f95430;
    /* Orange on hover */
}

/* Force specific containers to match user preference for orange */
.command-palette-results::-webkit-scrollbar-thumb,
.sh-comments-list::-webkit-scrollbar-thumb {
    background: #f95430 !important;
    /* Always orange as requested */
}

.command-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Darker for more premium feel */
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    overflow-y: auto;
    /* Allow scrolling the overlay if modal grows */
    -webkit-overflow-scrolling: touch;
}

.command-palette-overlay.open {
    display: block;
    /* Use block with margins instead of flex for more reliability when content grows */
    opacity: 1;
}

.command-palette-overlay .command-palette-container {
    background: #ffffff;
    width: 95%;
    max-width: 700px;
    margin: 5vh auto;
    /* Center with margins, works better when loading more */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.command-palette-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Container Base (Shared by Modal and Inline) */
.command-palette-container,
.comunidadhub-search-inline,
.comunidadhub-search-hybrid,
.comunidadhub-search-trigger-widget,
.comunidadhub-account-widget,
.comunidadhub-minimal-login-widget,
.comunidadhub-post-submission-widget,
.comunidadhub-popular-posts-widget {
    font-family: var(--ch-font-system);
    /* GPU Acceleration for smooth scrolling */
    will-change: transform;
    backface-visibility: hidden;
}

.comunidadhub-search-trigger-widget {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.comunidadhub-search-trigger-widget i,
.comunidadhub-search-trigger-widget svg {
    margin-right: 8px;
}

.comunidadhub-search-trigger-widget .shortcut-hint {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.07);
    font-family: monospace;
    opacity: 0.8;
}



.command-palette-container,
.surface {
    position: relative;
    background: #ffffff;
    background: var(--surface-bg, #ffffff);
    border-radius: 20px;
    border: 1px solid #e2e8f0 !important;
    border: 1px solid var(--surface-border, #e2e8f0) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: inherit;
    /* Inherit from overlay limits */
}

/* Modal Specific Container Styles */
.command-palette-overlay .command-palette-container {
    width: 700px;
    max-width: 95%;
    max-height: 80vh;
    /* Better usage of screen space */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
    background: #ffffff;
    border: none !important;
}

.command-palette-overlay.open .command-palette-container {
    transform: scale(1) translateY(0);
}

/* Inline Specific Container Styles */
.comunidadhub-search-inline .command-palette-container,
.comunidadhub-search-hybrid .command-palette-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    box-shadow: none;
    /* Can be controlled via Elementor */
}

/* Specific for Hybrid Search Refinements */
.comunidadhub-search-hybrid .category-filters {
    border-bottom: none !important;
}

.comunidadhub-search-hybrid .category-filter-item:hover {
    background: #e2e8f0 !important;
    color: #161311 !important;
}


/* Header */
.command-palette-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    gap: 15px;
}

.search-icon {
    font-size: 1.2rem;
    color: #f95430;
    /* Primary color */
}

.command-palette-input {
    flex: 1;
    padding: 14px 22px;
    border: 1.5px solid #edf2f7 !important;
    border-radius: 18px !important;
    font-size: 1.1rem;
    background: #fcfdfe !important;
    color: #161311;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.command-palette-input:focus {
    border-color: #f95430 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 20px rgba(249, 84, 48, 0.05), 0 0 0 4px rgba(249, 84, 48, 0.08) !important;
}

.command-palette-input::placeholder {
    font-size: 1rem;
    opacity: 0.6;
}

.command-palette-esc {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    flex-shrink: 0;
    cursor: pointer;
}

.command-palette-results {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 10px;
    position: relative;
    min-height: 200px;
}

/* Dynamic Scroll Fade Indicator (Fadeshadow) */
.scroll-fade-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    background: linear-gradient(to bottom, transparent, var(--surface-bg, #ffffff));
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-fade-indicator.visible {
    opacity: 0.95;
}

.command-palette-overlay .scroll-fade-indicator {
    bottom: 43px;
    /* Stays above the footer navigation hints on desktop */
}

@media (max-width: 600px) {

    .scroll-fade-indicator,
    .command-palette-overlay .scroll-fade-indicator {
        bottom: 0px !important;
        /* Ensure it stays at the bottom on mobile */
        height: 50px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface-bg, #ffffff));
    }
}

.result-item {
    display: flex;
    align-items: center;
    padding: 20px;
    /* Added more internal air (even padding) */
    border-radius: 15px;
    cursor: pointer;
    gap: 30px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
    text-decoration: none !important;
    color: inherit !important;
    box-sizing: border-box !important;
    border: 1px solid transparent;
    max-width: 100%;
    overflow: hidden;
}

.result-item:hover {
    background: rgba(249, 84, 48, 0.04) !important;
    border-color: rgba(249, 84, 48, 0.1) !important;
    transform: translateX(4px);
}

.result-item:last-child {
    border-bottom: none;
}

/* New Separator Style */
/* New Separator Style */
.search-result-separator {
    height: 1px;
    background: #e2e8f0;
    /* Slightly darker for better visibility */
    background: var(--surface-border, #e2e8f0);
    margin: 15px 20px;
    /* Increased vertical spacing (padding) */
    opacity: 0.6;
}

/* Specific adjustment for Inline Search Separator visibility */
/* Specific adjustment for Inline Search Separator visibility */
.comunidadhub-search-inline .search-result-separator,
.comunidadhub-search-hybrid .search-result-separator {
    background: #e2e8f0 !important;
    /* Match default trigger color */
    opacity: 0.6 !important;
    /* Match default trigger opacity */
    height: 1px;
    display: block;
    width: auto;
    margin: 15px 20px;
    /* Match default trigger margin */
}

/* Load More Wrapper Refinement */
.load-more-wrapper {
    background: transparent !important;
    padding: 20px 0 !important;
    /* Equal padding top/bottom */
    text-align: center;
    width: 100%;
}

.result-item:hover,
.result-item.active {
    background: #f2f5f9;
    /* Matching ad background */
    border-color: rgba(100, 116, 139, 0.15);
    /* Slightly darker contour */
}

.result-thumb-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 125px;
    flex-shrink: 0;
}


/* Container for thumbnail + trending icon — always relative to contain the badge */
.result-thumbnail-container {
    position: relative;
    width: 125px;
    height: 125px;
}

.result-thumbnail {
    width: 125px;
    height: 125px;
    aspect-ratio: 1 / 1;
    border-radius: 16px !important;
    object-fit: cover;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.result-thumbnail.loaded {
    animation: none;
    background: #f1f5f9;
}

/* Skeleton placeholders for general use (Lazy Loading) */
.ch-skeleton {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
    display: block;
}

.elementor-widget-container .ch-skeleton-circle,
body .ch-skeleton-circle,
.ch-skeleton-circle {
    border-radius: 50% !important;
}

.ch-skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.ch-skeleton-text.short {
    width: 40%;
}

.ch-skeleton-text.medium {
    width: 70%;
}

.ch-skeleton-item {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
    align-items: center;
}

.ch-skeleton-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-meta-below-thumb {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned as requested */
    gap: 8px;
}

/* Meta visibility logic */
.result-meta-mobile-top {
    display: none;
}

.result-meta-right {
    display: none;
}

.result-meta-below-thumb {
    display: flex;
}

/* Results area card styling (MOBILE) */
@media (max-width: 600px) {
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        /* Space between thumb and info */
        padding: 20px;
        position: relative;
    }

    .result-info {
        gap: 5px !important;
        /* Specific user request: 5px between meta and title */
    }

    .result-title {
        margin: 0 !important;
        width: 100%;
    }

    .result-thumb-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .result-thumbnail {
        width: 100%;
        height: 175px !important;
        aspect-ratio: auto;
        border-radius: 12px !important;
        object-fit: cover !important;
    }

    .result-desc {
        order: 4 !important;
        margin-top: 0 !important;
        width: 100%;
    }


    /* Mobile: Make thumb-wrapper relative and container transparent */
    .result-thumb-wrapper {
        position: relative;
    }

    /* On mobile the container stacks vertically but still needs relative to contain the badge */
    .result-thumbnail-container {
        position: relative;
        width: 100%;
        height: auto;
    }

    /* Adjust trending icon position on mobile */
    .trending-icon {
        top: 6px !important;
        left: 6px !important;
        bottom: auto !important;
        right: auto !important;
    }
}


.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Category + Date row — always above the title */
.result-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.result-title {
    font-weight: 600;
    color: #161311;
    font-size: 1rem;
    margin: 0;
}

/* .result-meta-right styles removed - element is hidden in desktop via line 231-233 */

.result-category {
    font-family: var(--ch-font-system) !important;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f95430;
    color: var(--primary, #f95430);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-date {
    font-size: 0.7rem;
    color: #94a3b8;
}

.result-meta {
    font-family: var(--ch-font-system) !important;
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    gap: 8px;
    align-items: center;
}


.result-desc {
    font-family: var(--ch-font-system) !important;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    display: block;
    padding-bottom: 5px;
}

.result-tag {
    font-family: var(--ch-font-system) !important;
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}


/* Trending Icon - Positioned over thumbnail image */
.trending-icon,
.trending-icon-widget {
    color: #f95430;
    color: var(--primary, #f95430);
    font-size: 0.9rem;
    background: #ffffff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

/* Search card trending icon: absolute over thumbnail */
.trending-icon {
    position: absolute;
    top: 8px;
    left: 8px;
}

.trending-icon i,
.trending-icon-widget i {
    animation: pulse-trend 2s infinite ease-in-out;
    will-change: transform;
}

/* Standalone widget specific styles */
.trending-icon-widget {
    position: relative;
    /* Default inline */
}

.trending-icon-widget.overlay-mode {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* ==========================================================================
   PUBLIC USER PROFILE CARD (Refined to match surface design)
   ========================================================================== */
/* ==========================================================================
   REFINED PUBLIC PROFILE (INLINE SEARCH AESTHETIC)
   ========================================================================== */

.public-profile-card.search-inline-style {
    will-change: transform;
    backface-visibility: hidden;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.profile-header-minimal {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding-bottom: 35px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 40px;
}

.profile-avatar-container {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

/* Meta-style Verified Badge */
.top-user-name .meta-verified-badge,
.profile-display-name .meta-verified-badge,
.sh-comment-author .meta-verified-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 3px;
    vertical-align: middle;
}

.meta-verified-badge .badge-base {
    color: #f95430;
    font-size: 19px;
}

.meta-verified-badge .badge-check {
    position: absolute;
    color: #ffffff;
    font-size: 9px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #f8fafc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-identity {
    flex: 1;
}

.profile-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-display-name {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.profile-country-pill {
    background: #fff5f2;
    color: #f95430;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(249, 84, 48, 0.1);
}

.profile-handle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.profile-handle-row .profile-username {
    margin-right: auto;
}

.profile-username {
    font-size: 1rem;
    color: #f95430;
    font-weight: 500;
}

.profile-city-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-quote-tagline {
    font-size: 14px !important;
    color: #475569;
    margin-top: 10px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.8;
}

/* Body Content */
.profile-content-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mini-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    /* Matte Black / Title color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.top-user-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-user-name .profile-verified-badge {
    font-size: 0.85rem;
    margin-top: 1px;
}

.profile-verified-badge {
    color: #f95430;
    color: var(--primary, #f95430);
    font-size: 0.9rem;
    margin-left: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(249, 84, 48, 0.2));
}

.profile-bio-fullwidth {
    width: 100%;
    padding-bottom: 25px;
}

.bio-text-refined {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #334155;
}

.profile-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.activity-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Homogenized Pill Styles */
.activity-pill,
.text-social-link {
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 400;
    /* Normal weight */
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.activity-pill:hover,
.text-social-link:hover {
    transform: translateY(-2px);
    background: #f95430;
    color: #ffffff !important;
    border-color: #f95430;
}

.empty-notif {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-style: italic;
}

/* Social Footer */
.profile-social-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.social-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .profile-activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .profile-header-minimal {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-top-row,
    .profile-handle-row {
        justify-content: center;
    }
}

@keyframes pulse-trend {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.field-desc {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
    margin-bottom: 8px;
    font-style: italic;
    font-weight: 500;
}

/* Shadow-fade wrapper for category filters */
.category-filters-wrapper {
    position: relative;
}

/* Left and right shadow fades — only visible when JS adds the class */
.category-filters-wrapper::before,
.category-filters-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.category-filters-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--surface-bg, #ffffff), transparent);
}

.category-filters-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--surface-bg, #ffffff), transparent);
}

/* JS adds these classes based on scroll position */
.category-filters-wrapper.has-left-shadow::before {
    opacity: 1;
}

.category-filters-wrapper.has-right-shadow::after {
    opacity: 1;
}

/* Category Filters (Hashtags) */
.category-filters {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    /* Aligned with the icon 25px left padding */
    background: #ffffff;
    background: var(--surface-bg, #ffffff);
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--surface-border, #e2e8f0);
    scrollbar-width: none;
    /* Hide for Firefox */
    -ms-overflow-style: none;
    /* Hide for IE/Edge */
}

.category-filters::-webkit-scrollbar {
    display: none;
    /* Hide for Chrome/Safari */
}

.category-label {
    color: #64748b;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.category-label .mobile-label {
    display: none;
}

.category-filter-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid transparent;
}

.category-filter-item:hover {
    background: #e2e8f0;
    color: #161311;
}

.category-filter-item.active {
    background: #f95430;
    background: var(--primary, #f95430);
    color: #ffffff;
}

@media (max-width: 600px) {
    .category-filters {
        padding-left: 20px;
    }
}

/* Animations */
@keyframes anim-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-in {
    animation: anim-fade-in 0.4s ease forwards;
    will-change: opacity, transform;
}

/* Load More Section */
.load-more-wrapper {
    padding: 15px;
    text-align: center;
    background: #f8fafc;
    background: var(--surface-bg-alt, #f8fafc);
}

.load-more-btn {
    background: #f95430;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-more-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.no-results {
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Footer */
.command-palette-footer {
    padding: 12px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    background: #f8fafc;
}

.command-palette-footer kbd {
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Scrollbar */
.command-palette-results::-webkit-scrollbar {
    width: 6px;
}

.command-palette-results::-webkit-scrollbar-track {
    background: transparent;
}

.command-palette-results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* Dark Mode Support (if theme supports it via .dark-mode class on body) */
.dark-mode .command-palette-container {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .command-palette-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .command-palette-input {
    background: #181818;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.dark-mode .command-palette-input:focus {
    border-color: #f95430;
    background: #1e1e1e;
}

.dark-mode .result-title {
    color: #e0e0e0;
}

.dark-mode .result-desc {
    color: #a0a0a0;
}

.dark-mode .command-palette-footer {
    background: #181818;
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .command-palette-footer kbd {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

/* Mobile */
@media (max-width: 768px) {

    /* Only make the MODAL full screen and square on mobile */
    .command-palette-overlay .command-palette-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        /* Dynamic Viewport Height for mobile browsers */
        max-height: 100dvh !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        /* Ensure no gaps */
        border: none !important;
        box-shadow: none !important;
        /* Flat look for full-screen mobile */
    }

    .command-palette-results {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 20px !important;
        /* Reduced from 80px to fix bottom gap appearance */
        padding-left: 5px !important;
        /* Added 5px margin as requested */
        padding-right: 5px !important;
        /* Added 5px margin as requested */
    }

    .command-palette-overlay {
        padding: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        display: none;
    }

    .command-palette-overlay.open {
        display: block !important;
    }

    .command-palette-footer {
        display: none;
    }

    /* Inline container should KEEP its rounded corners on mobile */
    .comunidadhub-search-inline .command-palette-container,
    .comunidadhub-search-hybrid .command-palette-container {
        border-radius: 20px;
        /* Default or from Elementor */
        margin-bottom: 20px;
    }

    /* Mobile: apply .category-filters-wrapper layout */
    .category-filters-wrapper::before,
    .category-filters-wrapper::after {
        width: 30px;
    }

    /* Mobile Category Refinements */
    .category-filters {
        gap: 10px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .category-label .desktop-label {
        display: none;
    }

    .category-label .mobile-label {
        display: inline;
    }

    .category-filter-item {
        flex-shrink: 0;
    }
}

/* Hybrid Search Inline Layout (Desktop and Mobile Handling) */
.chub-hybrid-inline-yes .command-palette-container {
    display: flex !important;
    flex-direction: column !important;
    /* Default to column for safety */
}

@media (min-width: 769px) {
    .chub-hybrid-inline-yes .command-palette-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .chub-hybrid-inline-yes .command-palette-header {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        border-bottom: none !important;
        border-right: var(--chub-divider-width, 0px) solid var(--chub-divider-color, transparent) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .chub-hybrid-inline-yes .category-filters-wrapper {
        flex: 0 0 66.666% !important;
        max-width: 66.666% !important;
        border-top: none !important;
        margin: 0 !important;
        width: 66.666% !important;
        display: flex !important;
        align-items: center !important;
    }

    .chub-hybrid-inline-yes .category-filters {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        border-bottom: none !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background: transparent !important;
        width: 100% !important;
    }
}

/* Force Mobile Stacked even if inline is YES */
@media (max-width: 768px) {
    .chub-hybrid-inline-yes .command-palette-container {
        flex-direction: column !important;
    }

    .chub-hybrid-inline-yes .command-palette-header,
    .chub-hybrid-inline-yes .category-filters-wrapper {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .chub-hybrid-inline-yes .command-palette-header {
        border-right: none !important;
        border-bottom: 1px solid var(--surface-border, #e2e8f0) !important;
    }
}

/* --- ComunidadHUB Ecosystem Widgets --- */

/* Popular Posts Widget */
.comunidadhub-popular-posts-widget {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popular-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-title {
    font-weight: 600;
    color: #161311;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    flex: 1;
    padding-right: 15px;
}

.popular-post-item:hover .popular-post-title {
    color: #f95430;
    /* Primary Color */
}

.result-meta-below-thumb {
    font-family: var(--ch-font-system);
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popular-post-views {
    font-family: var(--ch-font-system);
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


/* User Account Widget (Login/Register/Profile) */
.comunidadhub-account-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 0 auto;
}

.account-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1.5px solid #f1f5f9;
}

.account-tab {
    padding: 6px 10px 10px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 11px;
    text-transform: uppercase !important;
    letter-spacing: 0.8px;
}

.account-tab:hover {
    color: #161311;
}

.account-tab.active {
    color: #f95430;
}

.account-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f95430;
    box-shadow: 0 0 10px rgba(249, 84, 48, 0.3);
}

.account-forms .account-form {
    display: none;
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-forms .account-form.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #f95430;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 22px;
    border: 1.5px solid #edf2f7 !important;
    border-radius: 18px !important;
    font-size: 0.95rem;
    background: #fcfdfe !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #161311;
    width: 100%;
    appearance: none;
    height: 52px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25em !important;
    padding-right: 2.5rem !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #f95430 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 20px rgba(249, 84, 48, 0.05), 0 0 0 4px rgba(249, 84, 48, 0.08) !important;
}

/* Universal Button Style - With Elementor Global Integration */
.account-submit-btn,
.ch-btn-primary,
.submit-post-btn,
.load-more-members,
.sh-login-trigger-btn,
.minimal-login-btn,
.sh-submit-btn {
    /* Background: Use Elementor Global Accent, fallback to Plugin Primary, then Orange */
    background: var(--e-global-color-accent, var(--sokuhub-primary, #f95430));

    border: none;
    padding: 16px 32px;

    /* Border Radius: Use Elementor Global, fallback to 100px Pill */
    border-radius: var(--e-global-button-border-radius, 100px);

    /* Typography */
    color: #ffffff !important;
    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-weight: var(--e-global-typography-accent-font-weight, 700);

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

/* Hover Reset for Specific Buttons that shouldn't change filter/color */
.minimal-login-btn:hover,
.sh-login-trigger-btn:hover,
.account-submit-btn:hover,
.sh-submit-btn:hover {
    filter: brightness(1.1) !important;
}

/* Specific Tab Buttons Fix */
.account-tabs .account-tab {
    cursor: pointer;
    padding: 6px 12px 10px;
    font-weight: 500;
    color: #94a3b8 !important;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    font-size: 11px;
}

.account-tabs .account-tab.active {
    color: var(--sokuhub-primary, #f95430) !important;
    border-bottom-color: var(--sokuhub-primary, #f95430) !important;
}

.account-submit-btn:hover,
.ch-btn-primary:hover,
.submit-post-btn:hover,
.load-more-members:hover,
.sh-login-trigger-btn:hover,
.minimal-login-btn:hover {
    filter: brightness(1.1);
}

.profile-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 35px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.profile-banner-edit-wrapper {
    width: 100%;
    height: 200px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.banner-edit-label {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.banner-edit-label:hover {
    background: rgba(0, 0, 0, 0.8);
}

.profile-banner-display {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.profile-banner-display.empty-banner {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.profile-header-minimal.has-banner {
    margin-top: 0;
    /* Reset header margin */
    position: relative;
    z-index: 5;
    padding: 0 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (min-width: 601px) {
    .profile-avatar-public {
        position: absolute;
        z-index: 7;
        top: -80px;
        /* Repositioned lower */
        left: 30px;
        width: 250px;
        height: 250px;
    }

    .profile-header-minimal.has-banner .profile-identity {
        margin-top: 20px;
        margin-left: 300px;
        /* Space for absolute avatar */
        align-self: center;
        flex: 1;
    }

    .profile-quote-tagline-v2::after {
        right: 25px;
        left: auto;
    }
}

.profile-header-minimal.has-banner .profile-avatar-circle {
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-avatar-wrapper {
    position: relative;
    z-index: 6;
    margin-left: 10px;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.avatar-edit-label {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #f95430;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avatar-edit-label:hover {
    transform: scale(1.1);
}

.profile-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 200px;
    gap: 20px;
}

.profile-info-main {
    display: flex;
    flex-direction: column;
}

.profile-welcome h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #161311;
    font-weight: 800;
}

.profile-welcome p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.profile-account-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.view-my-profile-link {
    font-size: 12px;
    font-weight: 600;
    color: #f95430;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-my-profile-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.profile-logout-btn-minimal {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.profile-logout-btn-minimal:hover {
    color: #ef4444;
}

.profile-logout-btn-minimal i {
    font-size: 1rem;
}

.profile-logout-btn {
    margin-left: auto;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 8px 18px;
    border-radius: 100px;
    /* Pill shape for consistency */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
}

.profile-logout-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.profile-tabs {
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .comunidadhub-account-widget {
        padding: 25px !important;
    }

    .comunidadhub-minimal-login-widget {
        padding: 25px !important;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-logout-btn {
        margin: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .form-group.full {
        grid-column: span 1;
    }
}

/* Post Submission Widget */
.comunidadhub-post-submission-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 0 auto 40px;
}

.submission-header {
    text-align: center;
    margin-bottom: 35px;
}

.submission-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #161311;
    margin-bottom: 8px;
}

.submission-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.submission-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.submission-form .form-group.full {
    grid-column: span 2;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: #f95430;
    background: rgba(249, 84, 48, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-info i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 15px;
    display: block;
}

.file-upload-info span {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.file-upload-info small {
    font-family: var(--ch-font-system) !important;
    color: #94a3b8;
}

#image-preview-container {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

#featured-image-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#remove-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    z-index: 3;
}

.editor-wrapper {
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: white;
}

.editor-wrapper .wp-editor-container {
    border: none !important;
}

.privacy-check {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin: 25px 0 !important;
    flex-direction: row !important;
}

.privacy-check input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 15px !important;
    height: 15px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.privacy-check input[type="checkbox"]:checked {
    background: #f95430 !important;
    border-color: #f95430 !important;
}

.privacy-check input[type="checkbox"]:checked::after {
    content: "\f00c" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
}

.privacy-check label {
    font-size: 14px !important;
    color: #5A6B85 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    /* Force non-uppercase */
    cursor: pointer;
    line-height: 1.4;
}

.privacy-check label a {
    color: #f95430 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

/* Post Submission Simplified Footer (v4.0.9) */
.comunidadhub-post-submission-container .submission-actions-wrapper {
    display: flex !important;
    flex-direction: column-reverse !important;
    /* Button on Top, reCAPTCHA on Bottom */
    justify-content: flex-start !important;
    align-items: flex-start !important;
    /* Align both to the LEFT */
    width: 100% !important;
    margin: 35px 0 0 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    /* 10px space between elements */
}

.comunidadhub-post-submission-container .sh-recaptcha-static-badge {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    display: block !important;
}

.comunidadhub-post-submission-container .submission-actions {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
}

.comunidadhub-post-submission-container .submit-post-btn {
    margin: 0 !important;
}

.comunidadhub-post-submission-container .submit-post-btn {
    margin: 0 !important;
}

@media (max-width: 767px) {
    .comunidadhub-post-submission-container .submission-actions-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .comunidadhub-post-submission-container .submission-actions,
    .comunidadhub-post-submission-container .submit-post-btn {
        width: auto !important;
        /* Allow natural width */
        min-width: 200px;
        margin: 0 auto !important;
        /* Center horizontally */
        align-self: center !important;
        display: inline-flex !important;
        justify-content: center !important;
    }

    /* Ensure form groups are full width on mobile */
    .comunidadhub-post-submission-container .form-group.half {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-right: 0 !important;
    }

    .comunidadhub-post-submission-container {
        padding: 20px !important;
    }

    .submission-form .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .submission-form .form-group.full {
        grid-column: span 1 !important;
    }

    .file-upload-wrapper {
        padding: 20px !important;
    }

    .submission-header h2 {
        font-size: 1.5rem !important;
    }
}

/* Prevent community styles from bleeding into the native WP editor */
/* Target specific IDs and classes found in the quicktags and classic editor */
#qt_post_content_toolbar input.button,
#qt_post_content_toolbar .button,
.wp-editor-tabs button,
.quicktags-toolbar input.button,
.quicktags-toolbar .button,
.editor-wrapper .button,
.editor-wrapper .button-primary,
.editor-wrapper .button-secondary,
.editor-wrapper .wp-editor-tabs button,
.wp-editor-container button,
.wp-editor-container .button {
    background: #f0f0f1 !important;
    color: #2c3338 !important;
    border: 1px solid #8c8f94 !important;
    box-shadow: none !important;
    border-radius: 3px !important;
    padding: 2px 10px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    margin: 5px 2px !important;
    min-height: 28px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    vertical-align: top !important;
    box-sizing: border-box !important;
}

.editor-wrapper .wp-editor-tabs button {
    margin: 0 !important;
    padding: 5px 10px !important;
    height: 32px !important;
    border-bottom: none !important;
}

.comunidadhub-minimal-login-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    /* Ensure border radius clips content */
}

.minimal-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.minimal-login-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}

.minimal-login-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    text-align: left;
}

.minimal-login-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary, #f95430);
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimal-login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.minimal-login-header .welcome-label {
    font-family: var(--ch-font-system) !important;
    font-size: 0.85rem;
    color: #64748b;
    display: block;
    margin-bottom: 0px;
    line-height: 1.2;
}

.minimal-login-header .user-display-name {
    font-size: 1.1rem;
    margin: 0;
    color: var(--surface-text, #1e293b);
    line-height: 1.2;
}

.minimal-login-links {
    display: flex;
    flex-direction: column;
}

.minimal-login-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 5px;
    text-decoration: none;
    color: var(--surface-text, #334155);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.minimal-login-links a:last-child {
    border-bottom: none;
}

.minimal-login-links a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.minimal-login-links a.logout-link {
    color: #94a3b8;
}

.minimal-login-links a:hover {
    transform: translateX(5px);
}

.minimal-login-links .minimal-login-btn {
    margin-bottom: 20px;
    border-bottom: none;
}

.minimal-login-links .minimal-login-btn:hover {
    transform: none !important;
}

.privacy-check label {
    margin-bottom: 0 !important;
    cursor: pointer;
    line-height: 1.2;
    display: inline-block;
}

.submission-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.submission-login-required {
    text-align: center;
    padding: 60px;
    max-width: 500px;
    margin: 40px auto;
}

.submission-login-required h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

.recaptcha-group {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px 0;
}

/* Member Directory Widget - Compact & Premium */
.members-directory-container {
    padding: 20px 0;
}

.members-search-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.members-search-inner {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.members-search-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}



/* Search input matching .form-group input aesthetic */
/* Search input matching .form-group input aesthetic */
.member-search-input {
    width: 100%;
    padding: 14px 22px;
    /* Standard padding without icon space */
    border: 1.5px solid #edf2f7 !important;
    border-radius: 18px !important;
    font-size: 1rem;
    background: #fcfdfe !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #161311;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.member-search-input:focus {
    border-color: #f95430 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 20px rgba(249, 84, 48, 0.05), 0 0 0 4px rgba(249, 84, 48, 0.08) !important;
}

.member-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Default: 4 cols. Overridden by the Elementor columns control */
    gap: 20px;
}


/* Compact Member Card */
.member-card-v2 {
    will-change: transform;
    backface-visibility: hidden;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

.member-card-v2:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(249, 84, 48, 0.2);
}

.member-banner-thumb {
    height: 70px;
    /* Reduced height */
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.member-content {
    padding: 0 20px 20px;
    text-align: center;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-avatar {
    width: 70px;
    /* Compact size */
    height: 70px;
    margin: -35px auto 10px;
    /* Pull up half of height */
    position: relative;
    z-index: 10;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
    border: 3px solid #ffffff;
    /* Thick white border */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.member-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
}

/* Reusing verified badge styles but ensuring they work here */
.member-card-v2 .meta-verified-badge {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Avatar Normalization Fix: Ensure all avatars maintain 1:1 aspect ratio and cover content */
.profile-avatar-circle,
.profile-avatar-public img,
.member-avatar img,
.top-user-avatar,
.minimal-login-avatar img,
.sh-comment-avatar img,
.sh-mention-avatar img,
.profile-avatar-img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}


.top-user-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Circular avatars in follow lists (Seguidores / Seguidos) */
.follow-user-card .top-user-avatar,
.follow-list-grid .top-user-avatar,
.community-management-grid .top-user-avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}


/* Form Message Styles */
.form-message {
    margin: 15px 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    text-align: center;
    width: 100%;
}

.form-message.success {
    display: block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #10b981;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

.member-card-v2 .meta-verified-badge .badge-base {
    font-size: 16px;
    color: #f95430;
}

.member-card-v2 .meta-verified-badge .badge-check {
    font-size: 8px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.member-tagline {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    /* One line only for compact view */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 1.4em;
    font-weight: 500;
    opacity: 0.8;
}

.member-actions {
    margin-top: auto;
    width: 100%;
}

.member-view-profile {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    /* Improved padding */
    width: 100%;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    background: #191919 !important;
    /* Dark background */
    color: #ffffff !important;
    /* White text forced */
    border: 1px solid #191919 !important;
    /* Dark border */
}

.member-view-profile:hover {
    background: #f95430 !important;
    /* Orange hover */
    color: #ffffff !important;
    border-color: #f95430 !important;
    /* Orange border */
}

.members-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}


.no-members-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #64748b;
    font-size: 1.1rem;
}

/* V3 Spacing & Mobile Refinements */
.profile-quote-tagline-v2 {
    margin: 25px 0 20px;
    background: #f1f5f9;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 14px;
    color: #475569;
    font-weight: 400;
    font-style: normal;
    position: relative;
    width: 100%;
    flex: 0 0 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.profile-quote-tagline-v2 .bubble-text {
    flex: 1;
    text-align: center;
}

.profile-quote-tagline-v2::after {
    content: '';
    position: absolute;
    top: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #f1f5f9;
}

.bubble-quote-icon {
    color: #f95430;
    /* Brand Color */
    font-size: 0.9rem;
    opacity: 0.8;
}

.bubble-text {
    line-height: 1.4;
}

/* Profile Rank Progress Bar */
.profile-rank-progress {
    margin-top: 12px;
    width: 100%;
}

.rank-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rank-badge-public {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rank-badge-public i {
    font-size: 14px;
}

.rank-progress-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.rank-progress-bar-wrapper {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rank-progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(249, 84, 48, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.rank-progress-bar-fill::after {
    content: attr(data-progress) '%';
    position: absolute;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 0;
}

@media (max-width: 600px) {
    .public-profile-card.search-inline-style {
        padding: 15px !important;
        border-radius: 18px;
    }

    .profile-header-minimal.has-banner {
        margin-top: 0 !important;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .profile-avatar-public,
    .profile-avatar-container,
    .profile-header-minimal.has-banner .profile-avatar-wrapper {
        width: 130px;
        height: 130px;
        margin-top: -65px !important;
        margin-left: 0;
    }

    .profile-header-minimal.has-banner .profile-identity {
        margin-top: 8px !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-display-name {
        font-size: 1.3rem !important;
        margin-bottom: 5px !important;
    }

    .profile-top-row,
    .profile-handle-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .profile-handle-row {
        margin-top: 10px;
    }

    .profile-username {
        font-size: 1.05rem;
        margin-right: 0 !important;
    }

    .profile-city-text {
        justify-content: center;
        font-size: 0.85rem;
    }

    .profile-quote-tagline-v2 {
        margin: 20px 0 15px;
        padding: 10px 18px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box;
        justify-content: center;
        font-size: 13px;
    }

    .profile-quote-tagline-v2::after {
        left: 50%;
        transform: translatex(-50%);
    }

}

/* --- SokuHub Comments Widget --- */
.sokuhub-comments-section {
    background: #fff;
    background: var(--surface-bg, #fff);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--surface-border, #e2e8f0);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 60px 35px !important;
    overflow: visible !important;
}

/* Also force Elementor wrappers to be visible to avoid clipping */
.elementor-widget-comunidadhub_comments,
.elementor-widget-comunidadhub_comments .elementor-widget-container {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .sokuhub-comments-section {
        padding: 50px 15px !important;
        /* Less side padding on mobile */
    }
}

.sh-comments-list {
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.sh-comments-list::-webkit-scrollbar {
    width: 6px;
}

.sh-comments-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.sh-comment-item {
    will-change: transform;
    backface-visibility: hidden;
    display: block;
    /* Changed from flex to block to allow stacking */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    border-bottom: 1px solid var(--surface-border-subtle, #f1f5f9);
    animation: anim-fade-in 0.4s ease forwards;
}

.sh-comment-main {
    display: flex;
    gap: 15px;
}

.sh-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sh-comment-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sh-comment-body {
    flex: 1;
}

/* Responsive adjustment for nested comments */
@media (max-width: 600px) {
    .sh-comment-item[style*="margin-left"] {
        margin-left: 15px !important;
        padding-left: 10px !important;
    }
}

.sh-comment-author {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
    margin-right: 10px;
}

.sh-comment-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.sh-comment-content {
    font-family: var(--ch-font-system) !important;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-top: 4px;
}

/* Comment Form Wrapper */
.sh-comment-form-wrapper {
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--surface-border, #e2e8f0);
    padding-top: 25px;
    display: flex;
    gap: 18px;
    width: 100%;
}

.sh-comment-form {
    width: 100%;
}

.sh-textarea-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

.sh-comment-input {
    width: 100% !important;
}

/* Mention Suggestions Panel (Search Results Aesthetic) */
.sh-mention-suggestions-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
    padding: 8px !important;
    margin-bottom: 10px;
    display: none;
    /* Hidden by default to avoid showing empty white box */
}

.sh-mention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc;
}

.sh-mention-item:last-child {
    border-bottom: none;
}

.sh-mention-item:hover {
    background: rgba(249, 84, 48, 0.08);
    /* Brand Hover */
}

.sh-mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50% !important;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-mention-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-mention-item strong {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
}

/* Recaptcha & Submit */
.sh-form-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 15px !important;
    width: 100% !important;
    gap: 15px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.sh-form-footer .account-submit-btn,
.sh-form-footer .sh-submit-btn,
.sh-form-footer .ch-btn-primary {
    margin: 0 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.sh-recaptcha-static-badge {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

/* Hide reCAPTCHA badge and use static labels in forms per user request */
.grecaptcha-badge {
    display: none !important;
}

/* Custom Modals (Forgot Password) */
.ch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.ch-modal.open {
    display: flex;
}

.ch-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ch-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: chModalFadeIn 0.3s ease;
}

@keyframes chModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ch-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 20px;
    /* Set to exactly 20px */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 10;
    transition: color 0.2s ease;
}

.ch-modal-close:hover {
    color: #64748b;
    /* No hover color change or scale */
}

.ch-modal-content h3 {
    margin: 0 0 15px;
    font-size: 1.5rem;
    color: #1a202c;
}

.ch-modal-content p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

#ch-forgot-form .form-group {
    margin-bottom: 20px;
}

#ch-forgot-form input {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    outline: none !important;
}

#ch-forgot-form input:focus {
    border-color: #f95430 !important;
}

#ch-forgot-message {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

#ch-forgot-message.success {
    color: #2f855a;
}

#ch-forgot-message.error {
    color: #c53030;
}

/* Password Fields in Profile */
.ch-password-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.ch-password-fields h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1a202c;
}

.ch-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: ch-spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes ch-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- SokuHub Ad System (Manual Template Utilities) --- */
.ad-label {
    font-size: 12px !important;
    text-transform: uppercase;
    color: #0F0F0F;
    /* High contrast black for accessibility */
    letter-spacing: 2px;
    margin-top: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.ad-container,
.ad-html-content,
.ch-exec-script,
ins.adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100px;
    margin-bottom: 0 !important;
    display: block !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.ad-html-content {
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .result-item {
        padding: 10px 15px !important;
        gap: 15px !important;
        /* Reduced gap to prevent overflow */
    }

    /* Reset potential body padding from theme */
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 
       AD SHIELD: WORKING MOBILE CONTAINMENT - DO NOT MODIFY FUNCTIONAL RULES 
       These rules prevent the horizontal overflow on mobile devices.
    */
    .ch-loop-ad-slot,
    .result-item.ad-item,
    .ad-container,
    .ad-html-content,
    ins.adsbygoogle {
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ch-loop-ad-slot,
    .ch-loop-ad-slot article.ad-item,
    .result-item.ad-item,
    .standalone-ad-widget {
        width: 300px !important;
        max-width: 90% !important;
        /* Safety margin for small screens */
        padding: 10px !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Prevent general horizontal scroll but without cutting content aggressively */
    .ch-loop-ad-slot {
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

.ch-loop-ad-slot,
.ch-loop-ad-slot article.ad-item,
.result-item.ad-item,
.standalone-ad-widget {
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 15px !important; /* Reduced from 20px */
    text-align: center;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important; /* Reduced from 20px */
}

.ad-label {
    margin-top: 15px;
    display: block;
    color: #0F0F0F;
    font-weight: 600;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-html-content,
.ad-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 100px !important;
}

/* Adjustments for different search styles */
.search-inline-style .ad-item {
    background: #ffffff;
    border: none;
}

/* Minimal Login & Register Links */
.minimal-register-link,
.minimal-login-link,
.minimal-accent-link {
    color: var(--e-global-color-accent, var(--sokuhub-primary, #f95430));
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.minimal-register-link:hover,
.minimal-login-link:hover,
.minimal-accent-link:hover {
    color: var(--e-global-color-text, #333);
    text-decoration: underline;
}

.minimal-forgot-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.minimal-forgot-link:hover {
    color: var(--e-global-color-accent, var(--sokuhub-primary, #f95430));
}

.login-footer-links {
    margin-top: 15px;
    text-align: center;
}

.login-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.login-footer-links a:hover {
    color: var(--e-global-color-accent, var(--sokuhub-primary, #f95430));
}

.login-footer-links,
.minimal-login-footer-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.login-footer-links a,
.minimal-login-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.login-footer-links a:hover,
.minimal-login-footer-links a:hover {
    color: var(--e-global-color-accent, var(--sokuhub-primary, #f95430));
}

/* Desktop spacing for regular login links */
@media (min-width: 768px) {
    .login-footer-links {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }
}

/* Desktop spacing for regular login links (except minimal) */
@media (min-width: 768px) {
    .login-footer-links {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
    }
}

/* Username highlight in greeting - BOLD & ORANGE - CORRECTED SELECTOR */
.comunidadhub-minimal-login-widget .user-display-name,
.comunidadhub-minimal-login-widget .user-display-name span {
    color: #f95430 !important;
    font-weight: 900 !important;
}

/* Specific layout expansion for targeted fields (v4.0.5) */
.comunidadhub-account-widget .form-group.half:has(input[name="city_state"]),
.comunidadhub-account-widget .form-group.half:has(select[name="country"]),
.comunidadhub-account-widget .form-group.half:has(input[type="password"]),
.comunidadhub-register-form .form-group.half:has(input[name="city_state"]),
.comunidadhub-register-form .form-group.half:has(select[name="country"]) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Minimal Login reCAPTCHA Centering */
.comunidadhub-minimal-login-widget .sh-recaptcha-static-badge {
    text-align: center !important;
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
    margin-bottom: 5px !important;
}

/* Ensure footer alignment for minimal login */
.minimal-login-footer-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin-top: 30px !important;
}

.submission-actions-wrapper .sh-recaptcha-static-badge {
    margin-bottom: 0 !important;
    /* Remove bottom margin to help centering */
    text-align: left !important;
}

@media (max-width: 480px) {

    .sh-form-footer,
    .submission-actions-wrapper,
    .minimal-login-footer-actions {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
}

/* Minimal Login Footer - ALWAYS STACKED & CENTERED */
.minimal-login-footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
    width: 100% !important;
}

.minimal-login-footer-links a {
    text-align: center !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

/* Minimal Login Register Link - BLACK & BOLD */
.minimal-login-widget .minimal-register-link {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Modal Close "X" Polish */
.ch-modal-close {
    font-size: 32px !important;
    color: #161311 !important;
    /* Even larger icon */
    transform: none !important;
    transition: none !important;
}

.ch-modal-close:hover {
    color: #161311 !important;
    opacity: 0.8 !important;
    transform: none !important;
    background: transparent !important;
}

/* --- Mobile Fixes for Account & Forms --- */
@media (max-width: 600px) {

    /* Fix Profile Tabs Overflow */
    .account-tabs,
    .profile-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .account-tab {
        font-size: 14px;
        padding: 8px 15px;
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
    }

    /* Center Footer Elements (Buttons, reCAPTCHA, Links) */
    .sh-form-footer,
    .register-footer-links,
    .login-footer-links,
    .submission-actions-wrapper,
    .submission-actions,
    .profile-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* Center ReCAPTCHA Badge specifically */
    .sh-recaptcha-static-badge {
        margin: 0 auto 15px auto !important;
        text-align: center !important;
        display: inline-block !important;
    }

    /* Center Login/Register Links */
    .register-footer-links a,
    .login-footer-links a,
    .minimal-login-links a {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    /* Center Submit Buttons - High Specificity Override */
    .sh-form-footer .account-submit-btn,
    .sh-form-footer .sh-submit-btn,
    .sh-form-footer .ch-btn-primary,
    .submission-actions .account-submit-btn,
    .submit-post-btn,
    .minimal-login-btn {
        width: auto !important;
        min-width: 200px;
        margin: 5px auto !important;
        align-self: center !important;
        display: inline-flex !important;
        justify-content: center !important;
    }

    .minimal-login-links .minimal-login-btn {
        align-self: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Profile Header Mobile Refinements */
    .profile-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 10px !important;
        padding-bottom: 25px !important;
    }

    .profile-welcome {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .profile-info-main {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .profile-banner-edit-wrapper {
        height: 120px !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        margin-top: 35px !important;
        /* Extra space for the badge above */
        /* No margin bottom, let avatar pull up */
    }

    .profile-avatar-wrapper {
        width: 100px !important;
        height: 100px !important;
        margin-top: -50px !important;
        /* Pull up into banner */
        margin-left: 0 !important;
        margin-right: 0 !important;
        bottom: auto !important;
        /* Reset any absolute positioning */
        z-index: 5;
    }

    .profile-welcome {
        margin-top: 15px !important;
        /* Gap between avatar and name */
        text-align: center !important;
        width: 100% !important;
        padding: 0 10px;
    }

    .profile-welcome h3 {
        margin-top: 0 !important;
        font-size: 1.3rem !important;
    }

    .profile-account-links {
        margin-top: 5px !important;
    }

    /* Center Logout Button */
    .profile-logout-btn-minimal {
        justify-content: center !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    /* Mobile Banner Text Adjustment - Outside and Above the banner */
    .banner-size-recommendation {
        font-size: 0.75rem !important;
        top: -25px !important;
        /* Position above banner */
        bottom: auto !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        background: transparent !important;
        color: #64748b !important;
        /* Grayish text to look subtle outside */
        text-shadow: none !important;
        padding: 0 !important;
    }

    /* Move Change Cover Button to top right to avoid avatar */
    .banner-edit-label {
        top: 10px !important;
        bottom: auto !important;
        right: 10px !important;
        left: auto !important;
    }
}

/* Banner Size Recommendation Styles (Desktop Default) */
.banner-size-recommendation {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
}

/* ==========================================================================
   ISEKAI GAMIFICATION STYLES
   ========================================================================== */

.isekai-status-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.isekai-rank-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.isekai-rank-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.isekai-rank-info .isekai-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
    display: block;
    margin-bottom: 2px;
}

.isekai-rank-info .isekai-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.isekai-xp-total {
    font-size: 0.9rem;
    margin: 5px 0 0;
    color: #64748b;
}

.isekai-xp-total strong {
    color: #f95430;
}

.isekai-progress-wrapper {
    margin-top: 15px;
}

.isekai-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

.isekai-progress-bar-container {
    height: 14px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.isekai-progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
}

.isekai-progress-percent {
    font-size: 9px;
    color: #fff;
    font-weight: 800;
}

.isekai-xp-needed {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Guide Grid */
.isekai-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.isekai-guide-item {
    background: #fafbfc;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
}

.isekai-guide-item i {
    font-size: 1.2rem;
    color: #f95430;
}

.isekai-guide-item span {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.isekai-guide-item strong {
    color: #1a1a1a;
}

.isekai-guide-grid.penalty-grid {
    grid-template-columns: repeat(2, 1fr);
}

.isekai-guide-item.penalty {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.1);
}

.isekai-guide-item.penalty i {
    color: #ef4444;
}

.isekai-guide-item.penalty span {
    color: #7f1d1d;
}

/* Penalty Notice */
.isekai-penalty-notice {
    background: rgba(249, 84, 48, 0.05);
    border: 1px dashed rgba(249, 84, 48, 0.3);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -10px;
    margin-bottom: 30px;
}

.isekai-penalty-notice i {
    color: #f95430;
    font-size: 1.1rem;
}

.isekai-penalty-notice span {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    font-weight: 500;
}

/* Simple Notice (Text only) */
.sh-simple-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.sh-simple-notice i {
    color: #94a3b8;
    /* Matched to reCAPTCHA color */
    font-size: 1rem;
    opacity: 0.8;
}

.sh-simple-notice span {
    font-size: 0.72rem;
    /* Matched to reCAPTCHA size */
    color: #94a3b8;
    /* Matched to reCAPTCHA color */
    font-weight: 500;
    opacity: 0.8;
}

/* Levels Table */
.isekai-levels-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.isekai-table-title {
    padding: 20px;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.isekai-levels-table {
    max-height: 400px;
    overflow-y: auto;
}

.isekai-table-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 15px;
    transition: all 0.3s ease;
}

.isekai-table-row.reached {
    background: #f8fafc;
}

.isekai-table-row i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.isekai-table-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.isekai-table-xp {
    font-size: 12px;
    font-weight: 700;
    color: #f95430;
}

@media (max-width: 768px) {
    .isekai-rank-header {
        flex-direction: column;
        text-align: center;
    }

    .isekai-guide-grid,
    .isekai-guide-grid.penalty-grid {
        grid-template-columns: 1fr !important;
    }

    .isekai-table-name {
        font-size: 12px !important;
    }

    .isekai-table-xp {
        font-size: 11px !important;
    }
}

/* Rank Badge in Comments and Profiles */
.isekai-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.isekai-rank-badge i {
    font-size: 11px;
}

/* Specific adjustment for comments author line */
.sh-comment-author .isekai-rank-badge {
    position: relative;
    top: -1px;
}

/* ==========================================================================
   COMMUNITY MANAGEMENT (Account Dashboard)
   ========================================================================== */

.community-management-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.community-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.count-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.scrollable-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 10px;
}

/* Custom Scrollbar for scrollable lists */
.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 10px;
}

.follow-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.txpw-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 16px !important;
    box-shadow: none !important;
    margin-bottom: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: var(--ch-font-system) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Header Row: Avatar + Name + Verified */
.txpw-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
}

.txpw-avatar-wrap {
    flex-shrink: 0 !important;
}

.elementor-widget-container .txpw-avatar-wrap .txpw-avatar-img,
body .txpw-avatar-wrap .txpw-avatar-img,
.txpw-avatar-img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.txpw-info-wrap {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
}

.txpw-name-flex {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.txpw-username {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    line-height: 1.1 !important;
    letter-spacing: -0.3px !important;
    margin: 0 !important;
}

.txpw-fullname {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

.txpw-verified-badge {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
}

.txpw-badge-base {
    font-size: 16px !important;
    color: #ff5722 !important;
    /* Vibrant Orange */
}

.txpw-badge-check {
    position: absolute !important;
    font-size: 7px !important;
    color: #fff !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* XP Row */
.txpw-xp-wrapper {
    margin-top: 2px !important;
}

.txpw-xp-text {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.txpw-xp-text strong {
    font-weight: 700 !important;
    color: #334155 !important;
}

/* Rank Section (Spans FULL WIDTH) */
.txpw-rank-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 0px !important;
}

.txpw-rank-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* REMOVED background !important to allow dynamic PHP color */
.txpw-rank-pill {
    font-size: 10px !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    color: #fff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1 !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.txpw-next-label {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.txpw-bar-wrapper {
    height: 14px !important;
    background: #f1f5f9 !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
    border: none !important;
}

.txpw-bar-fill {
    height: 100% !important;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.txpw-percentage {
    font-size: 9px !important;
    color: #fff !important;
    font-weight: 800 !important;
    position: absolute !important;
    width: 100% !important;
    text-align: center !important;
    left: 0 !important;
    line-height: 14px !important;
}

.txpw-xp-count {
    display: none !important;
}

.follow-user-info {
    flex: 1;
    min-width: 0;
}

/* Follow Card Specific Rank Styling */
.follow-card-rank {
    margin-top: 10px !important;
    width: 100%;
}

.follow-card-rank .rank-badge-public {
    box-shadow: none !important;
}

.follow-card-rank .rank-progress-bar-wrapper {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.follow-user-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid #f1f5f9;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.follow-user-card:hover {
    border-color: #f95430;
    background: #fcfdfe;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.top-user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.2;
}

.follow-card-avatar-link {
    flex-shrink: 0;
}

.mini-rank-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.mini-rank-badge {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.mini-progress-container {
    flex: 1;
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.mini-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

@media (max-width: 600px) {
    .follow-list-grid {
        grid-template-columns: 1fr;
    }
}

.follow-view-profile-link:hover {
    color: #f95430;
}

@media (max-width: 768px) {
    .community-management-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Redesigned Follow Button (Banner Style - EXACT MATCH to Edit Cover) */
.ch-follow-btn,
.ch-follow-btn-link {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 100 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    width: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.ch-follow-btn i,
.ch-follow-btn-link i {
    font-size: 0.85rem !important;
    margin: 0 !important;
    color: #ffffff !important;
}

.ch-follow-btn:hover,
.ch-follow-btn-link:hover {
    background: #f95430 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    border-color: #f95430 !important;
}

.ch-follow-btn.following {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.ch-follow-btn.following:hover {
    background: rgba(239, 68, 68, 0.4) !important;
    border-color: #ef4444 !important;
}

/* Account community card refinements */
.follow-user-card {
    border-radius: 12px;
    padding: 10px 15px;
    background: #fcfdfe;
}

.follow-user-info .top-user-name {
    font-size: 0.95rem;
    color: #1a1a1a;
}

/* ==========================================================================
   SHARE WIDGET STYLES
   ========================================================================== */
.ch-share-container {
    display: flex;
    width: 100%;
}

.ch-share-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.ch-shortlink-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fcfdfe;
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    position: relative;
}

.ch-shortlink-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ch-shortlink-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f95430;
}

.ch-copy-btn {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.ch-copy-btn:hover {
    color: #000000;
    background: #f1f5f9;
}

.ch-copy-btn.ch-copy-success {
    background-color: #f95430 !important;
    color: #ffffff !important;
    border-color: #f95430 !important;
}

.ch-copy-btn:hover {
    color: #f95430;
}

.ch-copy-feedback {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.ch-share-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ch-share-icon {
    font-size: 1.2rem;
    color: #1a1a1a;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

.ch-share-icon:hover {
    color: #f95430;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .ch-share-box {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
        padding: 12px 15px;
    }

    .ch-shortlink-wrapper {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    .ch-shortlink-label {
        display: none;
    }

    .ch-shortlink-value {
        word-break: break-all;
        flex: 1;
        font-size: 12px !important;
    }

    .ch-share-icons {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
}

/* =====================================================
   Trending Icon Widget (overlay-mode)
   ===================================================== */

/* Base style for the icon bubble */
.trending-icon-widget {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    width: 30px;
    height: 30px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Overlay mode: pin inside the image container */
.trending-icon-widget.overlay-mode {
    position: absolute;
    top: 8px;
    left: 8px;
}

/* The Elementor widget wrapper containing the trending icon in overlay mode
   MUST have position:relative so the absolute child stays inside the image */
.elementor-widget-comunidadhub_trending_icon {
    position: absolute !important;
    top: 8px;
    left: 8px;
    z-index: 10;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* The image cell/column in the Loop Grid that contains the trending widget
   needs position:relative to act as the containing block */
.elementor-widget-image,
.e-loop-item .elementor-widget-container,
.elementor-widget-container:has(.trending-icon-widget.overlay-mode) {
    position: relative !important;
}

/* =========================================================
   CHUB ADMIN TOAST NOTIFICATION (#1 – AJAX Cache)
   ========================================================= */
#chub-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    max-width: 340px;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}
#chub-toast.chub-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
#chub-toast.chub-toast-success { background: linear-gradient(135deg, #16a34a, #15803d); }
#chub-toast.chub-toast-error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
#chub-toast.chub-toast-loading { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
#chub-toast .chub-toast-icon { font-size: 18px; flex-shrink: 0; }
#chub-toast .chub-toast-msg  { line-height: 1.4; }

/* Views Label: non-clickable row in the admin bar */
#wp-admin-bar-sh-view-count > a {
    cursor: default !important;
    pointer-events: none;
    opacity: 0.85;
    font-size: 12px !important;
}

/* Prueba auto-minificador v10.0.3 */