/**
 * WallProMax Frontend Styles
 * Mobile-first responsive CSS optimized for 90% mobile traffic
 */



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

/* ------------------------------------------------ */

/* Base Styles */
.wpmx-container {
    margin: 0 auto;
    padding: 0 8px;
    /* Mobile Default */
    transition: padding 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
    /* Localized fix */
}

/* Responsive Spacing (Tablet) */
@media (min-width: 768px) {
    .wpmx-container {
        padding: 0 10px;
    }
}

/* Responsive Spacing (Desktop) */
@media (min-width: 1024px) {
    .wpmx-container {
        padding: 0 15px;
    }
}

/* Masonry Layout - Masonry.js */
.wpmx-masonry-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    /* needed for Masonry */
}

/* Grid item sizer for responsive columns */
.wpmx-masonry-grid::after {
    content: '';
    display: block;
    clear: both;
}

/* Masonry Grid Constraints */
.wpmx-masonry-grid {
    --wpmx-cols: 2;
    /* Default for mobile */
    --wpmx-gutter: 8px;
    /* Mobile Default */

    display: flex;
    flex-wrap: wrap;
    column-gap: var(--wpmx-gutter);
}

/* Responsive Gutter (Tablet) */
@media (min-width: 768px) {
    .wpmx-masonry-grid {
        --wpmx-gutter: 10px;
    }
}

/* Responsive Gutter (Desktop) */
@media (min-width: 1024px) {
    .wpmx-masonry-grid {
        --wpmx-gutter: 15px;
    }
}

.wpmx-masonry-item {
    margin-bottom: var(--wpmx-gutter);
    /* Dynamic Vertical Gap */
    /* float: left; Removed for Flex fallback */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Dynamic width calculation based on columns and gutter */
    width: calc((100% - ((var(--wpmx-cols) - 1) * var(--wpmx-gutter))) / var(--wpmx-cols));
}

/* Responsive Column Counts */
@media (max-width: 479px) {
    .wpmx-masonry-grid {
        --wpmx-cols: 3;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .wpmx-masonry-grid {
        --wpmx-cols: 3;
    }
}

@media (min-width: 768px) and (max-width: 1439px) {
    .wpmx-masonry-grid {
        --wpmx-cols: 4;
    }
}

@media (min-width: 1440px) {
    .wpmx-masonry-grid {
        --wpmx-cols: 6;
    }
}

/* Hover effect removed by user request for consistency */

.wpmx-masonry-item img {
    width: 100%;
    display: block;
}

.wpmx-masonry-item a {
    display: block;
    text-decoration: none;
}

/* Hide item titles in masonry grid for clean look */
.wpmx-item-title {
    display: none;
}



/* Lazy Loading with Shimmer */
.wpmx-lazy-image {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    background-image: linear-gradient(to right, #fafafa 0%, #f0f0f0 20%, #fafafa 40%, #fafafa 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    line-height: 0;
}

/* Spinner Centered in Card */
.wpmx-lazy-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #f0f0f0;
    border-top-color: #ccc;
    /* Subtle grey spinner */
    border-radius: 50%;
    animation: wpmx-spin 0.8s linear infinite;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Loaded State - Remove Shimmer & Spinner */
.wpmx-lazy-image.wpmx-container-loaded {
    animation: none;
    background: transparent;
}

.wpmx-lazy-image.wpmx-container-loaded::after {
    opacity: 0;
    display: none;
}

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

/* Infinite Scroll Slide Up Animation */
@keyframes wpmx-slide-up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpmx-slide-up {
    animation: wpmx-slide-up 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.wpmx-lazy-image img {
    width: 100%;
    height: calc(100% + 1.5px);
    /* Force sub-pixel overlap to kill rounding gaps */
    object-fit: cover;
    display: block;
    opacity: 0;
    will-change: transform, opacity, filter;
    /* Modern "Apple-style" ease-out for luxurious feel */
    transition: opacity 0.8s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
    filter: brightness(1) saturate(1);
}

.wpmx-lazy-image:hover img {
    /* Subtle breathing zoom */
    transform: scale(1.04);
    /* "Vivid Wake-up" effect */
    filter: brightness(1.08) saturate(1.1);
}

.wpmx-lazy-image img.wpmx-loaded {
    opacity: 1;
}

.wpmx-blur-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 1.5px);
    filter: blur(20px);
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------
   Toolbar (Merged Search & Filter)
   ------------------------------------------------------------------------- */
.wpmx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.wpmx-toolbar-item {
    display: flex;
    align-items: center;
}

/* Search Wrapper */
.wpmx-search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.wpmx-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px !important;
    /* Force padding */
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: normal !important;
    color: #333;
    background: #f9f9f9;
    outline: none;
    transition: all 0.2s ease;
    height: 48px !important;
    /* Fixed height for consistent alignment */
    box-sizing: border-box !important;
}

.wpmx-search-input:focus {
    background: #fff;
    border-color: var(--wpmx-primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.wpmx-search-icon-left {
    position: absolute;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #999;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none;
    line-height: 1 !important;
}

/* Filters Group */
.wpmx-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Select Wrappers */
.wpmx-select-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 0 36px 0 16px !important;
    height: 48px !important;
    line-height: 48px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 8px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E") no-repeat right 16px center !important;
    background-size: 12px 12px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    outline: none;
    min-width: 160px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-sizing: border-box !important;
}

.wpmx-select-wrapper select:hover {
    border-color: #ccc;
    background-color: #fcfcfc;
}

.wpmx-select-wrapper select:focus {
    border-color: var(--wpmx-primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Slider Wrapper */
.wpmx-slider-wrapper {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 0 15px;
    border-radius: 8px;
    height: 48px !important;
    border: 1px solid #e1e1e1;
    min-width: 140px;
    box-sizing: border-box !important;
}

/* Range Slider */
.wpmx-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e1e1e1;
    border-radius: 3px;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Slider Thumb (WebKit) */
.wpmx-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--wpmx-primary-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    border: 3px solid #fff;
    margin-top: -7px;
    /* Align thumb with track */
}

/* Slider Track (WebKit) */
.wpmx-range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e1e1e1;
    border-radius: 3px;
}

.wpmx-range-slider::-webkit-slider-thumb:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Slider Thumb (Firefox) */
.wpmx-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--wpmx-primary-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    border: 3px solid #fff;
}

.wpmx-range-slider::-moz-range-thumb:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .wpmx-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wpmx-toolbar-filters {
        justify-content: space-between;
    }

    .wpmx-select-wrapper {
        flex: 1;
    }

    .wpmx-select-wrapper select {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .wpmx-toolbar-filters {
        gap: 8px;
    }

    .wpmx-select-wrapper select {
        padding-right: 25px !important;
        text-overflow: ellipsis;
    }

    /* Compact Slider for Mobile */
    /* Compact Slider for Mobile */
    .wpmx-slider-wrapper {
        min-width: 64px !important;
        /* Reduced by 20% */
        padding: 0 6px !important;
        /* Reduced padding */
        flex: 1;
        max-width: 96px;
        /* Reduced by 20% */
    }
}

/* Single Wallpaper */
.wpmx-single-wallpaper {
    margin: 0 auto;
    padding: 2px 5px;
}

.wpmx-wallpaper-hero {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wpmx-wallpaper-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.wpmx-wallpaper-meta {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpmx-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.wpmx-meta-row:last-child {
    border-bottom: none;
}

.wpmx-meta-label {
    font-weight: 600;
    color: #666;
}

.wpmx-meta-value {
    color: #333;
}

/* Download Button */
.wpmx-download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wpmx-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    color: #fff;
}

.wpmx-download-btn:active {
    transform: translateY(0);
}

/* Single Wallpaper - 2 Column Layout */
.wpmx-single-container {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

.wpmx-single-image-column {
    width: 100%;
    margin-bottom: 30px;
}

.wpmx-single-image-column .wpmx-main-image {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fafafa;
    background-image: linear-gradient(to right, #fafafa 0%, #f0f0f0 20%, #fafafa 40%, #fafafa 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    position: relative;
    /* Context for spinner */
}

/* Spinner for Main Image */
.wpmx-single-image-column .wpmx-main-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    /* Larger spinner for main image */
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f0f0f0;
    border-top-color: #ccc;
    border-radius: 50%;
    animation: wpmx-spin 0.8s linear infinite;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Loaded State for Main Image Container */
.wpmx-single-image-column .wpmx-main-image.wpmx-container-loaded {
    animation: none;
    background: #f0f0f0;
    /* Keep solid background behind image */
}

.wpmx-single-image-column .wpmx-main-image.wpmx-container-loaded::after {
    opacity: 0;
    display: none;
}

.wpmx-single-image-column .wpmx-main-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.wpmx-single-image-column .wpmx-main-image img.wpmx-loaded {
    opacity: 1;
}

.wpmx-single-details-column {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.wpmx-single-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ========================================================================= */
/*   LUXURY DETAILS COLUMN COMPONENTS                                        */
/* ========================================================================= */

/* 1. Hero Title Row */
.wpmx-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Trending Badge Pill */
/* Trending Badge Icon */
.wpmx-trending-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #fff;
    background: linear-gradient(135deg, #FF0000 0%, #FF6B00 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    animation: wpmx-pulse-glow 2s infinite;
}

@keyframes wpmx-pulse-glow {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 16px rgba(255, 107, 0, 0.6);
    }
}

/* Live Stats Row (Merged with Specs) */
.wpmx-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;
    flex-wrap: wrap;
    /* Allow wrapping */
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.wpmx-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 500;
}

.wpmx-stat-item svg {
    opacity: 0.7;
    width: 15px;
    height: 15px;
    color: #555;
}

/* Color Dot Alignment */
.wpmx-mini-color-dot {
    vertical-align: middle;
    margin-top: -1px;
}

.wpmx-stat-divider {
    color: #ddd;
    font-size: 12px;
}

/* 2. Download Buttons (Scrollable Row) */
.wpmx-download-stack {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    margin-bottom: 24px;
}

.wpmx-download-scroll-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* Space for scrollbar if visible */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    margin: 0 -16px;
    /* Bleed to edges on mobile if inside padded container */
    padding: 0 16px;
    /* Restore internal spacing */
}

/* Hide scrollbar for Chrome/Safari */
.wpmx-download-scroll-row::-webkit-scrollbar {
    display: none;
}

/* Scroll Items - Fixed Min Width to prevent shrinking */
.wpmx-dl-scroll-item {
    flex: 0 0 auto;
    min-width: 180px;
    /* Reduced specific min-width for scroll items */
    max-width: 240px;
}

/* Ensure Original button is prominent but fits flow */
.wpmx-dl-hero.wpmx-dl-scroll-item {
    min-width: 260px;
    /* Make original slightly wider */
}

.wpmx-dl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wpmx-dl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.wpmx-dl-card:hover::before {
    left: 100%;
}

.wpmx-dl-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wpmx-dl-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.wpmx-dl-meta {
    font-size: 12px;
    opacity: 0.7;
}

.wpmx-dl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

/* Hero Button (Original Quality) */
.wpmx-dl-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wpmx-dl-hero:hover {
    color: #fff;
}

/* Premium Button (2x Quality) */
.wpmx-dl-premium-card {
    background: linear-gradient(135deg, #000000 0%, #ff0000 100%);
    color: #fff;
}

.wpmx-dl-premium-card:hover {
    color: #fff;
}

.wpmx-dl-premium-card .wpmx-dl-title {
    background: linear-gradient(to right, #ffffff 0, #ff0000 30%, #ffffff 50%);
    background-position: 0;
    background-size: 200px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    animation-fill-mode: forwards;
    padding-right: 1px;
}

/* Secondary Row (2K + 1080p side by side) */
.wpmx-dl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wpmx-dl-secondary-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
}

.wpmx-dl-secondary-card .wpmx-dl-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
}

.wpmx-dl-secondary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: #fff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    /* Maintain gradient on hover */
}



/* 4. Glassmorphic Description */
/* 4. Inline Description Layout */
.wpmx-inline-desc-container {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: height;
}

/* Collapsed State: Flex Row (Label | Text | Button) */
.wpmx-inline-desc-container.collapsed {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    /* Force single line flow */
    overflow: hidden;
}

/* Expanded State: Block Flow */
.wpmx-inline-desc-container.expanded {
    display: block;
}

/* Label Pill */
.wpmx-inline-label {
    display: inline-flex;
    align-items: center;
    background: #444;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Text Content */
.wpmx-inline-text {
    color: #333;
}

.wpmx-inline-desc-container.collapsed .wpmx-inline-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    /* Required for ellipsis */
}

.wpmx-inline-desc-container.expanded .wpmx-inline-text {
    display: inline;
    margin-left: 6px;
    margin-right: 6px;
}

/* Toggle Button Pill */
.wpmx-inline-toggle {
    display: inline-flex;
    align-items: center;
    background: #666;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.wpmx-inline-toggle:hover {
    background: #1a1a1a;
}

.wpmx-meta-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wpmx-meta-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.wpmx-meta-item:last-child {
    margin-bottom: 0;
}

.wpmx-meta-item strong {
    color: #333;
    margin-right: 8px;
}

.wpmx-color-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    margin: 0 4px;
}

.wpmx-description-wrapper {
    margin-bottom: 25px;
    position: relative;
}

.wpmx-description {
    line-height: 1.7;
    color: #333;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

.wpmx-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.5em;
    overflow: hidden;
}

.wpmx-load-more {
    display: inline-block;
    background: none;
    border: none;
    color: var(--wpmx-primary-accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 8px 0 0 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wpmx-load-more:hover {
    color: #d32f2f;
    text-decoration: underline;
}

.wpmx-taxonomy-tabs {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: visible;
    max-width: 100%;
}

.wpmx-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.wpmx-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wpmx-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wpmx-primary-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.wpmx-tab-btn.active {
    color: var(--wpmx-primary-accent);
    background: white;
}

.wpmx-tab-btn.active::after {
    transform: scaleX(1);
}

.wpmx-tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.wpmx-tabs-content {
    padding: 5px 0;
    background: white;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    border-radius: 0 0 25px 25px;
}

/* Subtle premium scrollbar */
.wpmx-tabs-content::-webkit-scrollbar {
    height: 2px;
}

.wpmx-tabs-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.wpmx-tabs-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.wpmx-tabs-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.wpmx-tab-pane {
    display: none;
    width: 100%;
}

.wpmx-tab-pane.active {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: max-content;
    min-width: 100%;
}

.wpmx-details-section {
    margin-top: 30px;
}

.wpmx-details-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.wpmx-taxonomy {
    margin-bottom: 30px;
}

.wpmx-tax-group {
    margin-bottom: 15px;
}

.wpmx-tax-group strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.wpmx-tag {
    display: inline-block;
    padding: 6px 4px;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    margin: 0 0px 6px 0;
    transition: all 0.2s ease;
}

.wpmx-tag:hover {
    background: transparent;
    color: var(--wpmx-primary-accent);
}

/* Tags with circular images */
.wpmx-tag-with-image {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wpmx-tag-with-image:hover {
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Category Slider Image & Rotating Ring
------------------------------------------------------------------------- */

/* Wrapper for the Rotating Ring */
.wpmx-ring-container {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 3px;
    /* Ring Thickness */

    /* Metallic Gradient: Base -> Highlight -> Base -> Shadow -> Base */
    background: conic-gradient(from 0deg, #ff0000, #ffffff, #000000, #000000, #ff0000);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    /* Continuous Rotation (Clockwise) */
    animation: wpmx-spin-cw 8s linear infinite;
    will-change: transform;
    transition: box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* The Image/Content Inside (Counter-Rotating) */
.wpmx-tag-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    /* Small white border between image and ring for separation */

    /* Negative Rotation (Counter-Clockwise) to keep vertical alignment */
    animation: wpmx-spin-ccw 8s linear infinite;
    will-change: transform;

    background: #fff;
    /* Remove old styles */
    padding: 0;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: none;
}

/* View All Circle Specifics */
.wpmx-tag-image.wpmx-view-all-circle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #121212 !important;
    /* Dark Inner Background */
    border: 2px solid #fff;
    /* No white border for View All */

    /* Ensure padding/gradients from old class are reset */
    padding: 0;
}

/* View All Icon Color */
.wpmx-view-all-circle svg {
    color: #ffffff;
}

/* Hover Effects */
.wpmx-tag-with-image:hover .wpmx-ring-container {
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
    /* Glow effect */
}

/* Animation Keyframes */
@keyframes wpmx-spin-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes wpmx-spin-ccw {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Label Styling */
.wpmx-tag-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #333;
    line-height: 1.3;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 5px;
}

.wpmx-tag-with-image:hover .wpmx-tag-name {
    color: var(--wpmx-primary-accent);
}

/* Ensure label is visible */
.wpmx-view-all-circle-item .wpmx-tag-name {
    font-weight: 700;
}

.wpmx-download-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.wpmx-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpmx-btn {
    display: inline-block;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpmx-btn-primary {
    background: var(--wpmx-primary-accent);
    color: white;
    border: 2px solid var(--wpmx-primary-accent);
}

.wpmx-btn-primary:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wpmx-btn-secondary {
    background: white;
    color: var(--wpmx-primary-accent);
    border: 2px solid var(--wpmx-primary-accent);
}

.wpmx-btn-secondary:hover {
    background: var(--wpmx-primary-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Desktop: 2 Column Grid */
@media (min-width: 1024px) {
    .wpmx-single-container {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 40px;
        align-items: start;
        padding: 4px;
    }

    .wpmx-category-row {
        grid-column: 1 / -1;
        /* Span full width across both columns */
    }

    .wpmx-single-image-column {
        margin-bottom: 0;
        position: sticky;
        top: 100px;
        max-height: 80vh;
        display: flex;
        justify-content: center;
        overflow: visible;
        /* Allow scroll container to overflow */
        min-width: 0;
        /* Critical for flex children */
    }

    .wpmx-single-image-column .wpmx-main-image {
        max-height: 80vh;
        display: flex;
        justify-content: center;
    }

    .wpmx-single-image-column .wpmx-main-image img {
        max-height: 80vh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .wpmx-single-title {
        font-size: 22px;
    }

    .wpmx-download-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wpmx-btn {
        flex: 0 0 auto;
    }
}

/* Related Wallpapers */
.wpmx-related-section {
    margin: 10px;
    margin-top: 50px;
}

@media (max-width: 1023px) {
    .wpmx-related-section {
        margin-top: 2px;
    }
}

/* Infinite Scroll Loader */
.wpmx-loader {
    text-align: center;
    padding: 40px 0;
}

.wpmx-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--wpmx-primary-accent);
    border-radius: 50%;
    animation: wpmx-spin 0.8s linear infinite;
    margin: 0 auto;
}

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



.wpmx-filter-item input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.wpmx-filter-item select:focus,
.wpmx-filter-item input:focus {
    border-color: var(--wpmx-primary-accent);
}

/* Zoom Controls */
.wpmx-zoom-buttons {
    display: flex;
    gap: 8px;
}

.wpmx-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
}

.wpmx-zoom-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: #222;
}

.wpmx-zoom-btn span {
    font-size: 18px;
}

.wpmx-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Accessibility */
.wpmx-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;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {

    body:not(.wpmx-theme-light) .wpmx-filter-bar,
    body:not(.wpmx-theme-light) .wpmx-wallpaper-meta {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    body:not(.wpmx-theme-light) .wpmx-meta-label {
        color: #b0b0b0;
    }
}

/* Forced Dark Mode Support */
body.wpmx-theme-dark .wpmx-filter-bar,
body.wpmx-theme-dark .wpmx-wallpaper-meta {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.wpmx-theme-dark .wpmx-meta-label {
    color: #b0b0b0;
}

.wpmx-meta-value {
    color: #e0e0e0;
}

.wpmx-filter-item select,
.wpmx-filter-item input {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

/* End of content message */
.wpmx-end-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Category Row (Full-Width Top Row) */
.wpmx-category-row {
    width: 100%;
    margin-bottom: 0px;
}

.wpmx-category-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
    justify-content: space-evenly;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.wpmx-category-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Tags Section (Horizontal Scrollable) */
.wpmx-tags-section {
    margin-bottom: 5px;
}

.wpmx-tags-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.wpmx-tags-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.wpmx-tags-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}



/* -------------------------------------------------------------------------
   Smart Layout (Single Wallpaper)
   ------------------------------------------------------------------------- */

/* Wrapper */
.wpmx-smart-wrapper {
    display: flex;
    gap: 20px;
}

/* Portrait Layout: Image Left, Trending Sidebar Right */
.wpmx-smart-portrait {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    /* Center the image group */
    width: 100%;
    gap: 10px;
}

.wpmx-smart-portrait .wpmx-main-image {
    flex: 0 0 auto;
    width: auto;
    /* Let aspect ratio decide width */
    height: 85vh;
    /* Constrain height */
    max-width: calc(100% - 180px);
    /* Ensure space for sidebar */
    min-width: 0;
}

/* Landscape Layout: Image Top, Trending Bottom */
.wpmx-smart-landscape {
    flex-direction: column;
    min-width: 0;
    /* Critical: allows flex child to shrink below content size */
    width: 100%;
    max-width: 100%;
    /* Prevent expansion beyond parent */
}

.wpmx-smart-landscape .wpmx-main-image {
    width: 100%;
}

/* Trending Section Base */
.wpmx-smart-trending {
    position: relative;
    background: #ffffff00;
    border-radius: 0;
    overflow: hidden;
}

/* Badge */
.wpmx-trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--wpmx-primary-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 14px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sidebar Specifics (Vertical Scroll) */
.wpmx-trending-sidebar {
    width: 120px;
    /* Fixed width sidebar */
    flex-shrink: 0;
    max-height: 80vh;
    /* Match typical image height */
    display: flex;
    flex-direction: column;
}

.wpmx-trending-sidebar .wpmx-trending-scroll {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 2px;
    /* Space for badge */
    height: 100%;
    scrollbar-width: auto;
    /* Changed from thin */
}

/* Premium scrollbar for sidebar */
.wpmx-trending-sidebar .wpmx-trending-scroll::-webkit-scrollbar {
    width: 2px;
    /* Increased from 1px for visibility */
}

.wpmx-trending-sidebar .wpmx-trending-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.wpmx-trending-sidebar .wpmx-trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.wpmx-trending-sidebar .wpmx-trending-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}


/* Bottom Row Specifics (Horizontal Scroll) */
.wpmx-trending-bottom {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.wpmx-trending-bottom .wpmx-trending-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    /* Critical: prevent wrapping */
    gap: 15px;
    padding: 2px;
    padding-top: 4px;
    /* Space for badge */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: auto;
    /* Changed from thin */
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* Force container width */
}

/* Premium scrollbar for bottom row */
.wpmx-trending-bottom .wpmx-trending-scroll::-webkit-scrollbar {
    height: 2px;
    /* Increased from 1px for visibility */
}

.wpmx-trending-bottom .wpmx-trending-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.wpmx-trending-bottom .wpmx-trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.wpmx-trending-bottom .wpmx-trending-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}



/* Trending Item */
.wpmx-trending-item {
    display: block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    /* Prevent shrinking */
    background: #f0f0f0;
}

.wpmx-trending-item:hover {
    /* Scale removed */
}

.wpmx-trending-item img {
    display: block;
    width: 100%;
    height: auto;
    /* object-fit: cover; REMOVED to keep original height */
}

/* Sidebar Items: Full Width of Sidebar */
.wpmx-trending-sidebar .wpmx-trending-item {
    width: 100%;
    height: auto;
    /* aspect-ratio: 9/16; REMOVED to keep original height */
}

/* Bottom Items: Fixed Height/Width */
.wpmx-trending-bottom .wpmx-trending-item {
    width: 200px;
    height: 112px;
    /* Fixed height for 16:9 ratio (200px * 9/16) */
    flex-shrink: 0;
}

.wpmx-trending-bottom .wpmx-trending-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fill container */
}

/* Scrollbar styling */
.wpmx-trending-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.wpmx-trending-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.wpmx-trending-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Responsive - Mobile/Tablet */
@media (max-width: 1023px) {

    /* Mobile Portrait: Keep side-by-side with absolute sidebar */
    .wpmx-smart-portrait {
        position: relative;
        /* Context for absolute sidebar */
        display: inline-flex;
        /* Shrink to content width */
        flex-direction: row;
        /* KEEP SIDE BY SIDE */
        align-items: flex-start;
        gap: 0;
        /* No gap, sidebar is absolute */
        padding-right: 25%;
        /* Reserve space for sidebar (25% of container) */
    }

    .wpmx-smart-portrait .wpmx-main-image {
        flex: 0 0 auto;
        width: 95%;
        /* EXACTLY 75% width */
        height: auto;
        /* Auto height based on aspect-ratio */
        max-width: 95%;
        /* Strict 75% */
        min-width: 0;
    }

    /* Sidebar: Absolute positioned to match image height */
    .wpmx-trending-sidebar {
        position: absolute;
        /* Out of flow, reference parent height */
        right: 0;
        /* Pin to right edge */
        top: 0;
        /* Start at top */
        bottom: 0;
        /* End at bottom = SAME HEIGHT AS IMAGE */
        width: 25%;
        /* 25% width to complement 75% image */
        max-height: none;
        /* Let absolute positioning control height */
        overflow: hidden;
        /* Hide overflow, internal scroll handles it */
        display: flex;
        flex-direction: column;
    }

    /* Scrollable content inside sidebar */
    .wpmx-trending-sidebar .wpmx-trending-scroll {
        flex-direction: column;
        /* Keep vertical on mobile */
        overflow-y: auto;
        /* Vertical scroll when content exceeds */
        overflow-x: hidden;
        white-space: normal;
        height: 100%;
        /* Fill the absolute parent */
        gap: 10px;
        padding: 2px;
    }

    .wpmx-trending-sidebar .wpmx-trending-item {
        width: 100%;
        /* Full width of sidebar */
        height: auto;
        /* aspect-ratio: 9/16; REMOVED */
        max-height: none;
        /* Allow full height */
    }
}

/* =========================================================================
   Categories Page Styles
   ========================================================================= */

.wpmx-categories-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Hero Section */
.wpmx-categories-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.wpmx-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .wpmx-hero-title {
        font-size: 1.8rem;
    }
}

/* Search Bar Section */
.wpmx-category-search-section {
    margin-bottom: 25px;
}

.wpmx-category-search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.wpmx-category-search-wrapper .wpmx-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 22px;
}

.wpmx-category-search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.wpmx-category-search-input:focus {
    border-color: var(--wpmx-primary-accent);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.wpmx-search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.wpmx-search-autocomplete.active {
    display: block;
}

.wpmx-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #333;
}

.wpmx-search-result-item:hover {
    background: #f5f5f5;
}

.wpmx-search-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.wpmx-search-result-name {
    font-weight: 600;
    font-size: 15px;
}

.wpmx-search-result-count {
    font-size: 13px;
    color: #888;
    margin-left: auto;
}

/* Trending Tags Section */
.wpmx-trending-section {
    margin-bottom: 35px;
}

.wpmx-trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.wpmx-trending-tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.wpmx-trending-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Popular Section */
.wpmx-popular-section {
    margin-bottom: 40px;
}

.wpmx-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.wpmx-popular-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.wpmx-popular-slider::-webkit-scrollbar {
    height: 6px;
}

.wpmx-popular-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.wpmx-popular-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Premium Category Card */
.wpmx-category-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    text-decoration: none;
}

.wpmx-category-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.wpmx-category-card:hover .wpmx-category-card-inner {
    /* Scale removed */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.wpmx-category-card-inner .wpmx-lazy-image {
    margin-top: 100px;
    width: 100%;
    /* Changed from 100vw to prevent scroll leak */
    box-sizing: border-box;
    /* Ensure padding is included */
    overflow: hidden;
    /* Prevent child overflow */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: none;
    /* No shimmer for server-rendered content */
    background: transparent;
}

.wpmx-category-card-inner .wpmx-lazy-image::after {
    display: none;
    /* No spinner for server-rendered content */
}

.wpmx-category-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
    /* Override base .wpmx-lazy-image img rule - category cards are server-rendered */
}

.wpmx-category-card:hover .wpmx-category-card-inner img {
    /* Scale removed */
}

.wpmx-category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.wpmx-category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: #fff;
}

.wpmx-category-name {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.wpmx-category-count {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff;
    z-index: 5;
    font-weight: 500;
}

.wpmx-category-count .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* A-Z Navigation */
.wpmx-az-section {
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wpmx-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wpmx-az-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wpmx-az-link:hover {
    background: var(--wpmx-primary-accent);
    color: #fff;
}

.wpmx-az-link.wpmx-az-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.wpmx-az-link.active {
    background: var(--wpmx-primary-accent);
    color: #fff;
}

/* Letter Sections */
.wpmx-letter-section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.wpmx-letter-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wpmx-primary-accent);
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.wpmx-letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    align-items: start;
}

.wpmx-letter-grid .wpmx-category-card {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.wpmx-letter-loader {
    text-align: center;
    padding: 30px;
}

/* Tag Cloud Section */
.wpmx-tagcloud-section {
    background: #f9f9f9;
    padding: 40px 30px;
    border-radius: 20px;
    margin-top: 50px;
}

.wpmx-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    line-height: 2;
}

.wpmx-tag-link {
    color: #555;
    text-decoration: none;
    padding: 5px 12px;
    background: #fff;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wpmx-tag-link:hover {
    background: var(--wpmx-primary-accent);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .wpmx-category-card {
        flex: 0 0 140px;
    }

    .wpmx-letter-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .wpmx-az-link {
        width: 32px;
        height: 32px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .wpmx-category-name {
        font-size: 14px;
    }

    .wpmx-trending-tag {
        padding: 8px 15px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Trending Tags - Horizontal Scroll on Mobile */
    .wpmx-trending-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        scrollbar-width: none;
        /* Firefox */
        -webkit-overflow-scrolling: touch;
    }

    .wpmx-trending-tags::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Edge */
    }

    /* A-Z Navigation - Horizontal Scroll on Mobile */
    .wpmx-az-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        scrollbar-width: none;
        /* Firefox */
        -webkit-overflow-scrolling: touch;
    }

    .wpmx-az-nav::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Edge */
    }

    /* A-Z Section - Full Width Breakout with Glassmorphism */
    .wpmx-az-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 5px 10px;
        background: rgba(0, 0, 0, 0);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: none;
    }
}

/* Autocomplete Dropdown */
.wpmx-autocomplete-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    /* Slightly tighter radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    /* Slightly stronger shadow */
    z-index: 9999;
    /* Ensure it's on top of everything */
    padding: 5px 0;
    /* Add padding inside */
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    overflow: hidden;
}

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

.wpmx-ac-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f9f9f9;
}

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

.wpmx-ac-item:hover {
    background: #f8f9fa;
}


.wpmx-ac-item .wpmx-ac-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #999;
    flex-shrink: 0;
}

.wpmx-ac-item .wpmx-ac-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.wpmx-ac-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    /* Critical for flex truncation */
}

.wpmx-ac-info {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    white-space: nowrap;
}

.wpmx-ac-text small {
    color: #999;
    font-size: 11px;
    margin-left: 5px;
}

/* Horizontal Trending Bar */
.wpmx-trending-bar {
    display: flex;
    /* Show skeleton immediately */
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    min-height: 48px;
    /* Fixed height to prevent CLS */
}

.wpmx-trending-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    flex-shrink: 0;
}

.wpmx-trending-pills {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    /* Space for scrollbar if any */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    -webkit-overflow-scrolling: touch;
}

.wpmx-trending-pills::-webkit-scrollbar {
    display: none;
}

.wpmx-trending-pill {
    white-space: nowrap;
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.wpmx-trending-pill:hover {
    background: #eef2ff;
    color: var(--wpmx-primary-accent);
    border-color: var(--wpmx-primary-accent);
}

/* Skeleton Shimmer Animation */
@keyframes wpmx-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

.wpmx-trending-skeleton-bar {
    width: 100%;
    height: 28px;
    border-radius: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: wpmx-shimmer 1.5s infinite;
}

.wpmx-trending-pill.wpmx-skeleton {
    min-width: 50px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: wpmx-shimmer 1.5s infinite;
    color: transparent;
    border: none;
}

/* ==========================================================================
   HERO SEARCH REDESIGN (Structural)
   ========================================================================== */

/* Main Container */
.wpmx-hero-search {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 5px auto;
    position: relative;
    z-index: 100;
}

.wpmx-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input Group (Pill Shape) */
.wpmx-hero-input-group {
    width: 100%;
    height: 70px;
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.wpmx-hero-input-group:hover,
.wpmx-hero-input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Hero Icon */
.wpmx-hero-icon {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    color: var(--wpmx-primary-accent);
    margin: 0 15px;
    opacity: 0.8;
}

/* Hero Input */
.wpmx-hero-input {
    flex: 1;
    height: 100%;
    border: none !important;
    background: transparent !important;
    font-size: 18px;
    font-weight: 500;
    padding: 0 10px;
    outline: none !important;
    box-shadow: none !important;
    color: #333;
}

.wpmx-hero-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Filter Toggle Button */
.wpmx-hero-filter-toggle {
    width: auto;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    background: #f4f6f9;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
    color: #555;
    flex-shrink: 0;
    padding: 0 20px;
}

.wpmx-hero-filter-toggle:hover {
    background: var(--wpmx-primary-accent);
    color: #fff;
}

.wpmx-hero-filter-toggle.active {
    background: var(--wpmx-primary-accent);
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wpmx-hero-filter-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.wpmx-filter-label {
    margin-left: 2px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

/* Autocomplete Dropdown (Override) */
.wpmx-hero-search .wpmx-autocomplete-results {
    top: 80px;
    /* Below pill */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 10px 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Trending Bar (Centered) */
.wpmx-hero-search .wpmx-trending-bar {
    justify-content: center;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    width: 100%;
    max-width: 800px;
}

/* Filter Drawer - Compact Premium Design */
.wpmx-hero-filters {
    width: 100%;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.wpmx-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.wpmx-select-wrapper {
    position: relative;
}

.wpmx-hero-filters label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
}

/* Select Styling - Compact Pills */
.wpmx-hero-filters select {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    background: #f5f5f7;
    border: 1px solid transparent;
    padding: 0 28px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.wpmx-hero-filters select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--wpmx-primary-accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.wpmx-hero-filters select:hover {
    background-color: #fff;
    border-color: #ddd;
}

/* Slider Control - Premium Pill Design (Desktop & Mobile) */
.wpmx-slider-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 15px;
    background: #f5f5f7;
    border-radius: 24px;
    padding: 6px 14px 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wpmx-slider-control:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.wpmx-slider-control .dashicons {
    color: var(--wpmx-primary-accent);
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Column Count Display */
.wpmx-col-count {
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 6px 0 4px;
}

.wpmx-slider-control .wpmx-range-wrapper {
    background: transparent;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    min-width: 80px;
}

/* Smooth Range Slider */
.wpmx-range-slider {
    flex: 1;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: linear-gradient(90deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.wpmx-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--wpmx-primary-accent);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpmx-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.wpmx-range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.wpmx-range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--wpmx-primary-accent);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpmx-range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
}

.wpmx-range-slider::-moz-range-track {
    background: linear-gradient(90deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    height: 4px;
    border-radius: 2px;
}

/* Reset Button */
.wpmx-col-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 6px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;

    /* Inactive State (Default) */
    opacity: 0.2;
    pointer-events: none;
    filter: grayscale(100%);

    transition: opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.2s ease,
        filter 0.3s ease;
}

.wpmx-col-reset.active {
    opacity: 0.7;
    pointer-events: auto;
    filter: grayscale(0%);
    transform: scale(1);
}

.wpmx-col-reset.active:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
}

.wpmx-col-reset:active {
    transform: scale(0.95);
}

.wpmx-col-reset .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--wpmx-primary-accent);
}

/* Mobile: Even more compact */
@media (max-width: 480px) {
    .wpmx-hero-filters {
        padding: 12px;
        border-radius: 14px;
        margin-top: 12px;
    }

    .wpmx-filters-grid {
        gap: 10px;
    }

    .wpmx-hero-filters label {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .wpmx-hero-filters select {
        height: 36px;
        font-size: 12px;
        padding: 0 24px 0 10px;
        border-radius: 8px;
    }

    .wpmx-slider-control .wpmx-range-wrapper {
        height: 36px;
        border-radius: 8px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpmx-hero-input-group {
        height: 60px;
        padding: 0 10px;
    }

    .wpmx-hero-input {
        font-size: 16px;
    }

    .wpmx-hero-icon {
        margin: 0 10px;
    }

}

/* ==========================================================================
   MOBILE SEARCH BAR OVERRIDES
   ========================================================================== */
@media (max-width: 1023px) {
    .wpmx-hero-input-group {
        flex-direction: row-reverse;
        padding: 0 2px;
    }

    .wpmx-hero-input {
        padding: 12px 16px 12px 0px !important;
    }

    .wpmx-hero-filter-toggle {
        padding: 0 12px;
    }

    .wpmx-hero-icon {
        display: none !important;
    }

    .wpmx-search-btn-wrapper {
        display: block !important;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        order: -1;
        /* Push to right side with row-reverse */
        padding: 0;
        margin: 0;
    }

    .wpmx-hero-search-btn {
        width: 44px;
        height: 44px;
        background: var(--wpmx-primary-accent) !important;
        border-radius: 50%;
        border: 2px solid #fff !important;
        box-shadow: 0 4px 15px rgba(237, 58, 58, 0.3) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        cursor: pointer;
    }

    .wpmx-hero-search-btn .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
        color: #fff;
    }
}

/* ==========================================================================
   DESKTOP INLINE FILTERS (Merged Bar)
   ========================================================================== */

.wpmx-desktop-filters {
    display: none;
    /* Hidden by default (Mobile) */
}

.wpmx-search-btn-wrapper {
    display: none;
    /* Hidden by default */
}

@media (min-width: 1024px) {

    /* Hide Mobile Toggle */
    .wpmx-hero-filter-toggle {
        display: none !important;
    }

    /* Hide Left Icon on desktop if using right button */
    .wpmx-hero-icon {
        display: none !important;
    }

    .wpmx-hero-input {
        padding-left: 30px !important;
        /* Add spacing since icon is gone */
    }

    /* Show Inline Filters */
    .wpmx-desktop-filters {
        display: flex;
        align-items: center;
        height: 100%;
        padding-right: 10px;
    }

    .wpmx-custom-dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .wpmx-dropdown-trigger {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 40px 0 40px;
        /* Space for Icon (left) + extra right padding */
        cursor: pointer;
        border-radius: 30px;
        transition: background 0.2s;
        position: relative;
        min-width: 140px;
    }

    .wpmx-dropdown-trigger:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .wpmx-selected-text {
        font-weight: 600;
        font-size: 14px;
        color: #222;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    /* Icon & Chevron Positioning */
    .wpmx-inline-icon {
        color: #717171;
        font-size: 18px;
        width: 18px;
        height: 18px;
        position: absolute;
        left: 15px;
        /* Fixed inside trigger */
        pointer-events: none;
    }

    .wpmx-chevron {
        color: #717171;
        font-size: 14px;
        width: 14px;
        height: 14px;
        position: absolute;
        right: 15px;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }

    .wpmx-dropdown-trigger.active .wpmx-chevron {
        transform: rotate(180deg);
    }

    /* Dropdown Menu */
    .wpmx-dropdown-menu {
        position: absolute;
        top: 75px;
        /* Below the pill */
        left: 0;
        min-width: 200px;
        background: #fff;
        border-radius: 16px;
        padding: 8px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        pointer-events: none;
    }

    .wpmx-custom-dropdown.active .wpmx-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Menu Items */
    .wpmx-dd-item {
        padding: 10px 15px;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: background 0.1s;
        margin-bottom: 2px;
    }

    .wpmx-dd-item:last-child {
        margin-bottom: 0;
    }

    .wpmx-dd-item:hover {
        background: #f7f7f7;
    }

    .wpmx-dd-item.active {
        background: #eef2ff;
        color: var(--wpmx-primary-accent);
        font-weight: 600;
    }

    /* Color Dot */
    .wpmx-color-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.1);
        display: inline-block;
        margin-right: 10px;
    }

    .wpmx-separator {
        width: 1px;
        height: 24px;
        background: #e0e0e0;
        margin: 0 5px;
    }

    /* Big Search Button */
    .wpmx-search-btn-wrapper {
        display: block;
        padding-right: 8px;
    }

    .wpmx-hero-search-btn {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--wpmx-primary-accent);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
        box-shadow: 0 4px 12px rgba(237, 58, 58, 0.3);
    }

    .wpmx-hero-search-btn:hover {
        background: #d32f2f;
        transform: scale(1.05);
    }

    .wpmx-hero-search-btn .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
        color: #fff;
        /* Force white */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    /* Increase Pill Width for Desktop */
    .wpmx-hero-search {
        max-width: 950px;
    }

    /* ==========================================================================
       SEARCH BUTTON OVERRIDES (Absolute & Red)
       ========================================================================== */
    .wpmx-hero-input-group {
        height: 66px !important;
        /* Substantial height */
        border-radius: 100px !important;
        padding-right: 75px !important;
        /* Space for large button */
        position: relative !important;
    }

    .wpmx-desktop-filters {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .wpmx-search-btn-wrapper {
        position: absolute;
        right: 0;
        /* Zero gap */
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        z-index: 200;
        height: auto;
    }

    .wpmx-hero-search-btn {
        background: var(--wpmx-primary-accent) !important;
        box-shadow: 0 4px 15px rgba(237, 58, 58, 0.3) !important;
        width: 44px;
        height: 44px;
        padding: 0;
        margin: 0;
        border: 2px solid #fff !important;
    }

    .wpmx-hero-search-btn:hover {
        background: #d32f2f !important;
        transform: scale(1.05) !important;
    }
}

/* ==========================================================================
   PREMIUM HOMEPAGE HORIZONTAL SECTIONS
   Elegant, refined styling inspired by Unsplash/Pinterest
   ========================================================================== */

/* Section Container */
.wpmx-home-section {
    margin-bottom: 48px;
    position: relative;
}

.wpmx-horizontal-section {
    overflow: visible;
}

/* Section Header - Clean & Minimal */
.wpmx-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.wpmx-section-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.04em;
}

.wpmx-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.441);
    flex-shrink: 0;
}

.wpmx-section-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* View All Link - Understated elegance */
.wpmx-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 24px;
    background: transparent;
    transition: all 0.25s ease;
}

.wpmx-view-all:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.04);
}

.wpmx-view-all .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.wpmx-view-all:hover .dashicons {
    transform: translateX(3px);
}

/* Horizontal Scroll Container */
.wpmx-horizontal-scroll {
    position: relative;
    overflow: visible;
}

.wpmx-scroll-container {
    display: flex;
    gap: 8px;
    /* Mobile Default */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    margin: 0;

    /* Hide scrollbar - elegant appearance */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Tablet Spacing */
@media (min-width: 768px) {
    .wpmx-scroll-container {
        gap: 10px;
    }
}

/* Desktop Spacing */
@media (min-width: 1024px) {
    .wpmx-scroll-container {
        gap: 15px;
    }
}

.wpmx-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Wallpaper Cards - Premium styling */
.wpmx-scroll-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f7;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Card sizing based on orientation */
.wpmx-scroll-card[data-orientation="portrait"] {
    width: 200px;
    height: 355px;
}

.wpmx-scroll-card[data-orientation="landscape"] {
    width: 630px;
    height: 355px;
}

.wpmx-scroll-card[data-orientation="square"] {
    width: 355px;
    height: 355px;
}

/* Fallback for missing orientation */
.wpmx-scroll-card:not([data-orientation]) {
    width: 200px;
    height: 355px;
}

/* Card Hover - Subtle lift */
.wpmx-scroll-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Card Link */
.wpmx-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

/* Card Image Container */
.wpmx-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.wpmx-category-card-inner .wpmx-lazy-image {
    width: 100%;
    /* Fix mobile overflow */
    box-sizing: border-box;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.wpmx-card-image img,
.wpmx-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wpmx-scroll-card:hover .wpmx-card-img {
    transform: none;
}

/* Blur Canvas (for blurhash placeholder) */
.wpmx-scroll-card .wpmx-blur-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.wpmx-scroll-card .wpmx-card-img.wpmx-loaded~.wpmx-blur-canvas,
.wpmx-scroll-card .wpmx-blur-canvas.hidden {
    opacity: 0;
}

/* Card Overlay - Elegant gradient reveal */
.wpmx-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.wpmx-scroll-card:hover .wpmx-card-overlay {
    opacity: 1;
}

/* Card Title - Clean typography */
.wpmx-card-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateY(10px);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wpmx-scroll-card:hover .wpmx-card-title {
    transform: translateY(0);
}

/* Horizontal Scroll Wrapper */
.wpmx-horizontal-scroll {
    position: relative;
    /* Ensure arrows are positioned relative to this */
}

/* Navigation Arrows - Minimal circles */
.wpmx-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.wpmx-scroll-arrow .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #333;
}

.wpmx-scroll-left {
    left: 12px;
}

.wpmx-scroll-right {
    right: 12px;
}

/* Show arrows on section hover (desktop) */
.wpmx-horizontal-scroll:hover .wpmx-scroll-arrow {
    opacity: 1;
}

.wpmx-scroll-arrow:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
    /* No scale on hover */
}

.wpmx-scroll-arrow:active {
    transform: translateY(-50%);
}

/* Hide arrows when at scroll boundaries */
.wpmx-scroll-arrow.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* ==========================================================================
   Premium Hero Header - Homepage H1 + Subtitle
   ========================================================================== */

.wpmx-hero-header {
    text-align: center;
    padding: 40px 20px 32px;
    margin-bottom: 8px;
}

.wpmx-hero-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Gradient Accent Line */
.wpmx-hero-accent {
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(135deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* Main Title */
.wpmx-hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 50%, #1a1a1a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.wpmx-hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

/* Archive Title (legacy/fallback) */
.wpmx-archive-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}

/* ==========================================================================
   RESPONSIVE - Mobile/Tablet Adjustments
   ========================================================================== */

@media (max-width: 1023px) {

    /* Hide navigation arrows on touch devices */
    .wpmx-scroll-arrow {
        display: none !important;
    }

    /* Smaller card sizes */
    .wpmx-scroll-card[data-orientation="portrait"] {
        width: 160px;
        height: 284px;
    }

    .wpmx-scroll-card[data-orientation="landscape"] {
        width: 504px;
        height: 284px;
    }

    .wpmx-scroll-card[data-orientation="square"] {
        width: 284px;
        height: 284px;
    }

    .wpmx-scroll-card:not([data-orientation]) {
        width: 160px;
        height: 284px;
    }

    .wpmx-section-title {
        font-size: 1.35rem;
        gap: 10px;
    }

    .wpmx-section-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .wpmx-section-icon svg {
        width: 20px;
        height: 20px;
    }

    .wpmx-home-section {
        margin-bottom: 36px;
    }



    /* Always show overlay on mobile */
    .wpmx-card-overlay {
        opacity: 1;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.55) 0%,
                transparent 50%);
    }

    .wpmx-card-title {
        transform: translateY(0);
        font-size: 12px;
    }
}

@media (max-width: 479px) {
    .wpmx-scroll-card[data-orientation="portrait"] {
        width: 113px;
        height: 200px;
    }

    .wpmx-scroll-card[data-orientation="landscape"] {
        width: 355px;
        height: 200px;
    }

    .wpmx-scroll-card[data-orientation="square"] {
        width: 200px;
        height: 200px;
    }

    .wpmx-scroll-card:not([data-orientation]) {
        width: 113px;
        height: 200px;
    }

    .wpmx-section-header {
        margin-bottom: 14px;
    }

    .wpmx-section-title {
        font-size: 1.1rem;
    }

    /* =========================================================
       MOBILE: Section Header with Grid Slider on Second Row
       Row 1: Icon + Title ... Browse All/Count (right)
       Row 2: Grid Icon (left) ... Column Slider (right)
       ========================================================= */
    .wpmx-section-header {
        flex-wrap: wrap;
        gap: 12px 8px;
    }

    /* Title stays on the left of first row */
    .wpmx-section-header .wpmx-section-title {
        flex: 1;
        min-width: 0;
    }

    /* View All / Result Count stays on the right of first row */
    .wpmx-section-header .wpmx-view-all,
    .wpmx-section-header .wpmx-result-count {
        order: 0;
        flex-shrink: 0;
    }

    /* Slider Control moves to second row, full width */
    .wpmx-section-header .wpmx-slider-control {
        order: 10;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 4px 0 0 0;
        padding: 10px 12px;
        background: #f5f5f7;
        border-radius: 12px;
    }

    /* Grid icon on the left */
    .wpmx-section-header .wpmx-slider-control .dashicons {
        flex-shrink: 0;
    }

    /* Range wrapper takes remaining space, aligned right */
    .wpmx-section-header .wpmx-slider-control .wpmx-range-wrapper {
        flex: 1;
        max-width: 150px;
        margin-left: auto;
        background: transparent;
        border: none;
        height: auto;
        padding: 0;
    }

    /* Column count stays next to icon on mobile */
    .wpmx-section-header .wpmx-slider-control .wpmx-col-count {
        margin: 0 0 0 4px;
    }

    .wpmx-view-all {
        font-size: 13px;
        padding: 6px 12px;
    }

    .wpmx-scroll-card {
        border-radius: 12px;
    }

    .wpmx-card-overlay {
        padding: 12px;
    }

    .wpmx-archive-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Hero Header Mobile */
    .wpmx-hero-header {
        padding: 28px 16px 24px;
    }

    .wpmx-hero-branding {
        gap: 12px;
    }

    .wpmx-hero-accent {
        width: 60px;
        height: 5px;
    }

    .wpmx-hero-title {
        font-size: 2rem;
    }

    .wpmx-hero-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }
}

/* ==========================================================================
   SEO SECTIONS: FAQ Accordion & HowTo Steps
   PREMIUM REDESIGN - Spacious, Modern, Eye-catching
   ========================================================================== */

/* Section Container */
.wpmx-seo-section {
    margin: 20px 0;
    padding: 6px 2px;
    position: relative;
}

.wpmx-seo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Removed background gradient per user request */
    background: transparent;
    border-radius: 32px;
    z-index: -1;
}

/* Section Headers */
.wpmx-seo-section .wpmx-section-header {
    justify-content: center;
    margin-bottom: 48px;
}

.wpmx-seo-section .wpmx-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.wpmx-seo-section .wpmx-section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--wpmx-primary-accent) 0%, #000000 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wpmx-seo-section .wpmx-section-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ==========================================================================
   HowTo Section - Timeline Style
   ========================================================================== */

/* ==========================================================================
   HowTo Section - Premium Gradient Cards (Edixer Style Refined)
   ========================================================================== */

.wpmx-howto-section {
    padding-bottom: 0px;
}

.wpmx-howto-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Base */
.wpmx-howto-step {
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
    /* Increased Padding */
    border-radius: 28px;
    /* More rounded */
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    /* Base background fallback */
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Hover Effect - Subtle Color Shift Instead of Lift */
.wpmx-howto-step:hover {
    /* Removed translateY(-10px) per user request */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    filter: brightness(1.05) saturate(1.1);
    /* Slightly pop the gradient color */
}

/* 
   Refined Premium Gradients 
*/
/* Step 1: "Browse" - Cyan/Mint (like Real-Time Insights) */
.wpmx-howto-step:nth-child(1) {
    background: linear-gradient(180deg, #bbf0f3 0%, #87e3eb 100%);
}

/* Step 2: "Select" - Peach/Orange (like Client Growth) */
.wpmx-howto-step:nth-child(2) {
    background: linear-gradient(180deg, #ffe2d1 0%, #ffc8b0 100%);
}

/* Step 3: "Download" - Gold/Yellow (like Premium Design) */
.wpmx-howto-step:nth-child(3) {
    background: linear-gradient(180deg, #ffefce 0%, #ffe09e 100%);
}

/* Step 4: "Set" - Blue/Cyan (like Custom Domain) */
.wpmx-howto-step:nth-child(4) {
    background: linear-gradient(180deg, #d4fcff 0%, #90e0ff 100%);
}

/* Icons */
.wpmx-step-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    /* Soft shadow to make icon pop */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.wpmx-step-icon svg {
    width: 100%;
    height: 100%;
}

/* Typography Refinement */
.wpmx-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Titles: Pink/Purple Gradient - Darker for readability */
.wpmx-step-content h3 {
    margin: 0 0 14px 0;
    font-size: 1.5rem;
    /* Larger */
    font-weight: 800;
    /* Extra Bold */
    line-height: 1.2;
    letter-spacing: -0.01em;

    /* Stronger Gradient for Contrast against pastel bg */
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    /* Edixer Pink/Purple */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Fallback color */
    color: #e91e63;
}

/* Description text - Increase contrast */
.wpmx-step-content p {
    margin: 0 0 24px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    /* Darker Gray (Tailwind Gray-700) */
    font-weight: 600;
    /* Heavier than normal */
}

/* Feature List */
.wpmx-step-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.wpmx-step-list li {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    /* Near Black */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpmx-step-list li::before {
    content: '';
    display: block;
    width: 20px;
    /* Slightly larger check */
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310B981'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    /* Use Emerald-500 (#10B981) for better visibility than lime green */
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .wpmx-howto-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wpmx-howto-steps {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 20px 20px 20px;
        /* Right padding for end spacing */
        grid-template-columns: none;
        /* Override grid */
        width: 100%;
        margin-left: -20px;
        /* Offset container padding to touch edges */
        width: calc(100% + 40px);
    }

    .wpmx-howto-step {
        padding: 24px 20px;
        flex: 0 0 85%;
        /* 85% width to show peek of next card */
        width: 85%;
        scroll-snap-align: center;
    }

    /* Hide scrollbar for cleaner look */
    .wpmx-howto-steps::-webkit-scrollbar {
        display: none;
    }
}

/* ==========================================================================
   FAQ Section - Premium Cards (Edixer Style)
   ========================================================================== */

.wpmx-faq-section {
    padding-bottom: 0px;
}

.wpmx-faq-accordion {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0px;
}

.wpmx-faq-item {
    border-radius: 24px;
    /* Match HowTo Cards */
    background: #fff;
    /* Fallback */
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Hover Lift - Subtle Color Shift Instead of Lift */
.wpmx-faq-item:hover {
    /* Removed translateY(-4px) per user request */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    filter: brightness(1.02) saturate(1.05);
    /* Slightly pop the gradient color */
}

/* 
   Apply Premium Gradients to FAQ Items (Cycling)
*/
/* 1st, 5th, 9th... - Cyan/Mint */
.wpmx-faq-item:nth-child(4n+1) {
    background: linear-gradient(180deg, #bbf0f3 0%, #87e3eb 100%);
}

/* 2nd, 6th... - Peach/Orange */
.wpmx-faq-item:nth-child(4n+2) {
    background: linear-gradient(180deg, #ffe2d1 0%, #ffc8b0 100%);
}

/* 3rd, 7th... - Gold/Yellow */
.wpmx-faq-item:nth-child(4n+3) {
    background: linear-gradient(180deg, #ffefce 0%, #ffe09e 100%);
}

/* 4th, 8th... - Blue/Cyan */
.wpmx-faq-item:nth-child(4n+4) {
    background: linear-gradient(180deg, #d4fcff 0%, #90e0ff 100%);
}


.wpmx-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    /* Bolder title */
    color: #111827;
    /* Dark Text */
    transition: all 0.2s ease;
    gap: 16px;
}

/* Fallback and JS Sync Styles */
.wpmx-faq-accordion:not(.wpmx-faq-js-ready) .wpmx-faq-item[open] .wpmx-faq-icon,
.wpmx-faq-js-ready .wpmx-faq-item.is-open .wpmx-faq-icon {
    background: #fff;
    transform: rotate(180deg);
}

.wpmx-faq-accordion:not(.wpmx-faq-js-ready) .wpmx-faq-item[open],
.wpmx-faq-js-ready .wpmx-faq-item.is-open {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.wpmx-faq-q-text {
    flex: 1;
}

/* Icon Container */
.wpmx-faq-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #111827;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* --- HTML5 Details/Summary Animation via jQuery --- */
.wpmx-faq-item {
    overflow: hidden;
}

/* Base state for the wrapper */
.wpmx-faq-answer {
    background: rgba(255, 255, 255, 0.3);
}

/* The actual content inside the wrapper needs to be contained */
.wpmx-faq-answer>p {
    overflow: hidden;
}

/* Hide default marker in WebKit/Safari */
.wpmx-faq-question::-webkit-details-marker {
    display: none;
}

.wpmx-faq-question {
    list-style: none;
    /* Hide default marker in Firefox/Standard */
}

.wpmx-faq-answer p {
    padding: 16px 28px 28px 28px;
    /* Balanced top/bottom padding to center the text */
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================
   PREMIUM CUSTOM THEME (Header & Layout)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --wpmx-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wpmx-header-bg-light: rgba(255, 255, 255, 0.85);
    /* More glass */
    --wpmx-header-bg-dark: rgba(18, 18, 18, 0.85);
    --wpmx-border-light: rgba(0, 0, 0, 0.06);
    /* Softer border */
    --wpmx-border-dark: rgba(255, 255, 255, 0.06);
    --wpmx-blur-strength: 20px;
    --wpmx-primary: #000000;
    /* Minimalist Black for Premium, or Keep Brand Color? User likely wants minimalist */
    --wpmx-primary-accent: #ed3a3a;
}

/* Body Reset for Custom Theme */
body.wpmx-custom-theme {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background-color: #fcfcfc;
    /* Cleaner white */
    font-family: var(--wpmx-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
    body.wpmx-custom-theme:not(.wpmx-theme-light) {
        background-color: #050505;
        /* Deep black */
        color: #fff;
    }
}

body.wpmx-theme-dark.wpmx-custom-theme {
    background-color: #050505;
    color: #fff;
}

/* 1. Glassmorphism Header - Refined */
.wpmx-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Manual Height Control */
    height: 60px;
    /* Mobile Default */
}

@media (min-width: 768px) {
    .wpmx-site-header {
        height: 72px;
        /* Tablet */
    }
}

@media (min-width: 1024px) {
    .wpmx-site-header {
        height: 80px;
        /* Desktop */
    }
}

/* Backdrop Filter Layer */
.wpmx-header-backdrop {
    position: absolute;
    inset: 0;
    background: var(--wpmx-header-bg-light);
    backdrop-filter: blur(var(--wpmx-blur-strength));
    -webkit-backdrop-filter: blur(var(--wpmx-blur-strength));
    border-bottom: 1px solid var(--wpmx-border-light);
    z-index: -1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    /* Very subtle depth */
}


@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-header-backdrop {
        background: var(--wpmx-header-bg-dark);
        border-bottom: 1px solid var(--wpmx-border-dark);
    }
}

body.wpmx-theme-dark .wpmx-header-backdrop {
    background: var(--wpmx-header-bg-dark);
    border-bottom: 1px solid var(--wpmx-border-dark);
}

.wpmx-header-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 24px;
}

/* Logo */
.wpmx-logo-area {
    flex-shrink: 0;
}

.wpmx-brand-logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.wpmx-brand-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-brand-logo {
        color: #fff;
    }
}

body.wpmx-theme-dark .wpmx-brand-logo {
    color: #fff;
}

.wpmx-dot {
    color: var(--wpmx-primary);
}

/* Desktop Navigation */
.wpmx-desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .wpmx-desktop-nav {
        display: block;
    }

    .wpmx-nav-list {
        display: flex;
        align-items: center;
        gap: 24px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .wpmx-nav-list a {
        text-decoration: none;
        color: #555;
        font-weight: 600;
        font-size: 15px;
        transition: color 0.2s ease;
        position: relative;
        display: flex;
        /* NEW: Align Icon + Text */
        align-items: center;
    }

    @media (prefers-color-scheme: dark) {
        body:not(.wpmx-theme-light) .wpmx-nav-list a {
            color: #aaa;
        }
    }

    body.wpmx-theme-dark .wpmx-nav-list a {
        color: #aaa;
    }

    .wpmx-nav-list a:hover,
    .wpmx-nav-list li.active a {
        color: #111;
    }

    @media (prefers-color-scheme: dark) {

        body:not(.wpmx-theme-light) .wpmx-nav-list a:hover,
        body:not(.wpmx-theme-light) .wpmx-nav-list li.active a {
            color: #fff;
        }
    }

    body.wpmx-theme-dark .wpmx-nav-list a:hover,
    body.wpmx-theme-dark .wpmx-nav-list li.active a {
        color: #fff;
    }

    /* Premium Badge */
    .wpmx-premium-link {
        color: #EAB308 !important;
        /* Gold */
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

/* Search Bar (Expanded) */
.wpmx-header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .wpmx-header-search {
        display: block;
    }
}

.wpmx-search-wrapper,
.wpmx-header-search-box {
    position: relative;
    width: 100%;
}

.wpmx-header-search-box input {
    width: 100%;
    padding: 10px 48px 10px 42px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
    font-size: 15px;
    color: #111;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

@media (prefers-color-scheme: dark) {
    .wpmx-header-search-box input {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }
}

.wpmx-header-search-box input:focus {
    background: #fff;
    border-color: var(--wpmx-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-header-search-box input:focus {
        background: #1a1a1a;
    }
}

body.wpmx-theme-dark .wpmx-header-search-box input:focus {
    background: #1a1a1a;
}

.wpmx-header-search-box .dashicons-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.wpmx-search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
    pointer-events: none;
}

/* User Actions */
.wpmx-header-actions {
    display: none;
    /* Hidden on mobile, shown in bottom bar */
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .wpmx-header-actions {
        display: flex;
    }
}

/* Buttons */
.wpmx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.1s ease;
}

.wpmx-btn:active {
    transform: scale(0.96);
}

.wpmx-btn-primary {
    background: var(--wpmx-primary);
    color: #fff;
}

.wpmx-btn-primary:hover {
    filter: brightness(1.1);
    color: #fff;
}

.wpmx-btn-upload {
    background: #111;
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-btn-upload {
        background: #fff;
        color: #000;
    }
}

body.wpmx-theme-dark .wpmx-btn-upload {
    background: #fff;
    color: #000;
}

/* User Avatar */
.wpmx-user-profile img {
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.wpmx-user-profile img:hover {
    border-color: var(--wpmx-primary);
}

/* 2. Layout Wrapper */
.wpmx-site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    /* Manual Padding Control (Matches Header Height) */
    padding-top: 60px;
    /* Mobile */
}

@media (min-width: 768px) {
    .wpmx-site-wrapper {
        padding-top: 72px;
        /* Tablet */
    }
}

@media (min-width: 1024px) {
    .wpmx-site-wrapper {
        padding-top: 80px;
        /* Desktop */
    }
}

.wpmx-site-content {
    flex: 1;
    /* Pushes footer down */
    position: relative;
    z-index: 10;
}

/* 3. Footer Styles */
/* =========================================================================
   Ultra-Luxury Footer
   ========================================================================= */

.wpmx-grand-footer {
    background: #0f0f0f;
    /* Deep, rich dark (Not pitch black #000) */
    color: #fff;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.wpmx-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 10;
}



/* 1. Custom Topbar (Search) */
.wpmx-footer-top-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f0f0f;
    /* Ultra Light Background */
    padding: 60px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator for light bg */
    margin-top: 100px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    /* Allow filters to overlap footer */
    position: relative;
    z-index: 20;
    /* Higher than grand footer */
}

/* Impactful Footer Title */
.wpmx-footer-search-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ceccccba;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .wpmx-footer-search-title {
        font-size: 2rem;
        /* Slightly smaller on mobile but still impactful */
        margin-bottom: 25px;
        padding: 0 10px;
    }
}

/* Footer Search Replica - Mobile Overrides */
.wpmx-footer-search-replica {
    width: 100%;
    margin: 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box;
}

.wpmx-footer-search-replica .wpmx-hero-inner {
    border-radius: 12px;
    box-shadow: none !important;
    /* Flat design as requested */
    margin-bottom: 20px;
    width: 100%;
}

.wpmx-footer-spacer {
    height: 80px;
    width: 100%;
}

/* Premium App Install Section */
.wpmx-app-install-premium {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wpmx-app-install-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.wpmx-app-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.wpmx-app-text p {
    font-size: 16px;
    color: #888;
    margin: 0 0 30px 0;
}

.wpmx-app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: #fff;
    color: #000;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.app-badge svg {
    width: 24px;
    height: 24px;
}

.app-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

/* 2. Elite Content Architecture */
.wpmx-footer-content {
    padding: 50px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wpmx-footer-grid-ultra {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.wpmx-col-main {
    max-width: 400px;
}

.wpmx-footer-logo-luxury {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
}

.wpmx-footer-logo-luxury span {
    color: var(--wpmx-primary-accent);
}

.wpmx-brand-manifesto {
    font-size: 15px;
    line-height: 1.8;
    color: #888;
    margin-bottom: 40px;
}

/* Luxury Social Grid */
.wpmx-social-kinetic {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #888;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.03);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-btn:hover {
    background: var(--wpmx-primary-accent);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--wpmx-primary-accent);
    box-shadow: 0 10px 20px rgba(237, 58, 58, 0.2);
}

.social-btn:hover svg {
    transform: scale(1.1);
}

/* Nav columns */
.wpmx-footer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    flex-grow: 1;
}

.ultra-footer-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--wpmx-primary-accent);
    margin-bottom: 35px;
    font-weight: 800;
}

.ultra-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ultra-links li {
    margin-bottom: 18px;
}

.ultra-links a {
    color: #777;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.ultra-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--wpmx-primary-accent);
    transition: width 0.3s ease;
}

.ultra-links a:hover {
    color: #fff;
}

.ultra-links a:hover::after {
    width: 100%;
}

/* 3. Footer Bottom Finish */
.wpmx-footer-bottom-ultra {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-ultra {
    font-size: 14px;
    color: #444;
}

.designer-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: #444;
}

.designer-tag span {
    color: #888;
    font-weight: 800;
}

.footer-back-to-top {
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-top-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-back-to-top:hover .btn-top-inner {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.footer-back-to-top svg {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-back-to-top:hover svg {
    transform: translateY(-2px);
}

/* RESPONSIVE PRECISION */
@media (max-width: 1200px) {
    .wpmx-footer-container {
        padding: 0 40px;
    }

    .wpmx-footer-grid-ultra {
        flex-direction: column;
        gap: 60px;
    }

    .wpmx-col-main {
        max-width: 100%;
    }


}

@media (max-width: 768px) {
    .wpmx-grand-footer {
        padding-top: 0;
    }



    .wpmx-footer-nav-group {
        grid-template-columns: 1fr;
        gap: 40px;
    }



    .bottom-flex {
        flex-direction: column;
        gap: 0px;
        text-align: center;
    }

    .wpmx-grand-footer {
        padding-bottom: 50px;
    }

    .wpmx-footer-content,
    .wpmx-footer-col,
    .wpmx-footer-logo-luxury,
    .wpmx-brand-manifesto,
    .wpmx-social-kinetic {
        text-align: center;
        align-items: center;
        justify-content: center;
    }
}

.wpmx-btn-large {
    padding: 12px 32px;
    font-size: 16px;
    background: #fff;
    color: var(--wpmx-primary-accent);
}

/* Mobile Bottom Nav */
.wpmx-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 53px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1001;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    /* Rotation Stabilization */
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

@media (min-width: 768px) {
    .wpmx-mobile-bottom-nav {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-mobile-bottom-nav {
        background: rgba(18, 18, 18, 0.92);
        border-top-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    }
}

body.wpmx-theme-dark .wpmx-mobile-bottom-nav {
    background: rgba(18, 18, 18, 0.92);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.wpmx-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}




/* =========================================
   WORDPRESS ADMIN BAR COMPATIBILITY
   ========================================= */
body.admin-bar .wpmx-site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .wpmx-site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .wpmx-header-container {
        /* Ensure items don't shift weirdly */
    }
}

/* =========================================
   MOBILE MENU TOGGLE & OVERLAY
   ========================================= */

.wpmx-mobile-toggle {
    display: none;
    /* Desktop hidden */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

@media (max-width: 768px) {
    .wpmx-mobile-toggle {
        display: flex;
    }
}

.wpmx-bar {
    width: 100%;
    height: 2px;
    background-color: #111;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-bar {
        background-color: #fff;
    }
}

body.wpmx-theme-dark .wpmx-bar {
    background-color: #fff;
}

/* Transform to X when open */
.wpmx-mobile-toggle.active .wpmx-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.wpmx-mobile-toggle.active .wpmx-bar:nth-child(2) {
    opacity: 0;
}

.wpmx-mobile-toggle.active .wpmx-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay */
.wpmx-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 100px 30px 40px;
    /* Top padding clears header */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-mobile-menu-overlay {
        background: rgba(10, 10, 10, 0.98);
    }
}

body.wpmx-theme-dark .wpmx-mobile-menu-overlay {
    background: rgba(10, 10, 10, 0.98);
}

.wpmx-mobile-menu-overlay.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.wpmx-mm-link {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-mm-link {
        color: #fff;
    }
}

body.wpmx-theme-dark .wpmx-mm-link {
    color: #fff;
}

.wpmx-mm-link:hover {
    color: var(--wpmx-primary);
}

.wpmx-mm-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-mm-divider {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

body.wpmx-theme-dark .wpmx-mm-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Stagger animation */
.wpmx-mobile-menu-overlay.active .wpmx-mm-link,
.wpmx-mobile-menu-overlay.active .wpmx-mm-divider {
    opacity: 1;
    transform: translateY(0);
}

.wpmx-mobile-menu-overlay.active .wpmx-mm-link:nth-child(1) {
    transition-delay: 0.1s;
}

.wpmx-mobile-menu-overlay.active .wpmx-mm-link:nth-child(2) {
    transition-delay: 0.15s;
}

.wpmx-mobile-menu-overlay.active .wpmx-mm-link:nth-child(3) {
    transition-delay: 0.2s;
}

.wpmx-mobile-menu-overlay.active .wpmx-mm-link:nth-child(4) {
    transition-delay: 0.25s;
}

.wpmx-mobile-menu-overlay.active .wpmx-mm-divider {
    transition-delay: 0.3s;
}


/* Utility */

/* =========================================
   PREMIUM POLISH (OVERRIDES)
   ========================================= */

/* 1. Mobile Menu: Massive & Glassy */
.wpmx-mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    padding-top: 140px !important;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-mobile-menu-overlay {
        background: rgba(10, 10, 10, 0.8) !important;
    }
}

body.wpmx-theme-dark .wpmx-mobile-menu-overlay {
    background: rgba(10, 10, 10, 0.8) !important;
}

.wpmx-mm-link {
    font-size: 36px !important;
    /* Huge */
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 32px !important;
    padding-left: 10px;
    border-left: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wpmx-mm-link:hover {
    padding-left: 20px;
    border-left-color: var(--wpmx-primary-accent);
    color: #000 !important;
    transform: translateX(10px);
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-mm-link:hover {
        color: #fff !important;
    }
}

body.wpmx-theme-dark .wpmx-mm-link:hover {
    color: #fff !important;
}

/* 2. Premium Search Bar */
.wpmx-header-search-box input {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    padding: 12px 50px 12px 48px !important;
    border-radius: 16px !important;
    /* Pill shape */
    font-weight: 500;
}

.wpmx-header-search-box input:focus {
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 4px rgba(100, 100, 255, 0.1) !important;
    border-color: rgba(100, 100, 255, 0.2) !important;
}

/* 3. Gradient Buttons */
.wpmx-btn-primary {
    background: #111 !important;
    /* Minimalist Black */
    border-radius: 100px !important;
    /* Fully rounded */
    padding: 10px 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-btn-primary {
        background: #fff !important;
        color: #000 !important;
    }
}

body.wpmx-theme-dark .wpmx-btn-primary {
    background: #fff !important;
    color: #000 !important;
}

/* 4. Smooth Mobile Toggle */
.wpmx-mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 50%;
    transition: background 0.3s;
}

.wpmx-mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.wpmx-bar {
    height: 2.5px !important;
    border-radius: 4px !important;
    background: #000 !important;
    width: 24px !important;
    align-self: center;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-bar {
        background: #fff !important;
    }
}

body.wpmx-theme-dark .wpmx-bar {
    background: #fff !important;
}

/* Luxury Mobile Nav SVGs - 7 Item High Contrast */
.wpmx-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
    margin: 0;
    stroke-width: 1.6px;
    color: #444;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.wpmx-nav-item.active svg {
    color: var(--wpmx-primary-accent) !important;
    transform: scale(1.1);
    stroke-width: 1.8px;
    filter: drop-shadow(0 2px 10px rgba(102, 126, 234, 0.3));
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-nav-item svg {
        color: #bbb;
    }

    body:not(.wpmx-theme-light) .wpmx-nav-item.active svg {
        color: var(--wpmx-primary-accent) !important;
    }
}

body.wpmx-theme-dark .wpmx-nav-item svg {
    color: #bbb;
}

body.wpmx-theme-dark .wpmx-nav-item.active svg {
    color: var(--wpmx-primary-accent) !important;
}

/* Trending Special Ring Style (Bulletproof Stabilization) */
.wpmx-nav-special {
    overflow: visible !important;
}

.wpmx-nav-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    overflow: hidden;
    /* Isolate animation from scroll layout */
    contain: paint;
}

/* The actual rotating ring is a pseudo-element behind the content */
.wpmx-nav-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2.5px;
    /* Border thickness */
    background: conic-gradient(from 0deg, #ed3a3a, #ffffff, #000000, #000000, #ed3a3a);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 50%;
    animation: wpmx-spin-cw 8s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.wpmx-nav-ring-inner {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* STATIC - NO ROTATION ON INNER */
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-nav-ring-inner {
        background: #121212;
    }
}

body.wpmx-theme-dark .wpmx-nav-ring-inner {
    background: #121212;
}

/* Ensure Trending icon is perfectly stable */
.wpmx-nav-item.wpmx-nav-special svg {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    color: #444 !important;
    transform: translateZ(0) !important;
    filter: none !important;
    transition: color 0.3s ease !important;
    z-index: 3;
}

.wpmx-nav-item.wpmx-nav-special.active svg {
    color: var(--wpmx-primary-accent) !important;
    transform: none !important;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-nav-special svg {
        color: #ddd !important;
    }
}

body.wpmx-theme-dark .wpmx-nav-special svg {
    color: #ddd !important;
}

/* Elevated Active State for Special Item */
.wpmx-nav-special.active .wpmx-nav-ring {
    transform: scale(1.15) translateY(-2px);
    background: conic-gradient(from 0deg, var(--wpmx-primary-accent), #fff, var(--wpmx-primary-accent));
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* =========================================
   CRITICAL FIXES: SVG Sizing & Alignment
   ========================================= */

/* Force SVG Dimensions in Bottom Nav (Prevent Blowout) */
/* End Luxury Icons */

/* Header Premium Link Alignment */
.wpmx-premium-link {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.wpmx-premium-link svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
    /* Removes inline spacing */
}

/* Header Search Icon Sizing */
/* =========================================
   FIX: Mobile Menu Overlay (Refined Premium)
   ========================================= */

.wpmx-mobile-menu-overlay {
    padding-top: 100px !important;
    /* Fixed padding */
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.wpmx-mm-link {
    font-size: 24px !important;
    /* Readable, not massive */
    letter-spacing: -0.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    border-left: none !important;
    /* Remove previous border effect */
    padding-left: 0 !important;
}

.wpmx-mm-link:hover {
    transform: translateX(8px);
    color: var(--wpmx-primary-accent) !important;
}

.wpmx-mm-icon {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.wpmx-mm-link:hover .wpmx-mm-icon {
    opacity: 1;
    color: var(--wpmx-primary-accent);
}

.wpmx-premium-link-overlay {
    color: #111 !important;
}

.wpmx-premium-link-overlay .wpmx-mm-icon {
    color: #F59E0B !important;
    opacity: 1 !important;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-premium-link-overlay {
        color: #fff !important;
    }
}

body.wpmx-theme-dark .wpmx-premium-link-overlay {
    color: #fff !important;
}

.wpmx-premium-link-overlay .wpmx-mm-icon {
    color: #F59E0B !important;
    opacity: 1 !important;
}

/* =========================================
   NEW MOBILE HEADER LAYOUT (Left Aligned Grouping)
   ========================================= */

/* Default container: Hide desktop, show mobile */
.wpmx-header-container {
    display: none;
}

@media (min-width: 1024px) {
    .wpmx-header-container {
        display: flex;
        /* Show on Desktop */
    }

    .wpmx-mobile-header-layout {
        display: none !important;
        /* Hide Mobile Layout on Desktop */
    }
}

.wpmx-mobile-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    width: 100%;
    gap: 12px;
}

/* Left Group: Toggle + Logo */
.wpmx-mh-group-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wpmx-mobile-toggle {
    margin-right: 0 !important;
    /* Reset margin */
}

.wpmx-brand-logo-mobile {
    display: block;
    line-height: 0;
}

.wpmx-brand-logo-mobile img {
    height: 24px !important;
    width: auto !important;
    max-width: 120px;
    object-fit: contain;
}

.wpmx-brand-logo-mobile .wpmx-logo-text {
    font-size: 20px !important;
    white-space: nowrap;
}

/* Right Group: App + Icons */
.wpmx-mh-group-right {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex-grow: 1;
    /* Take remaining space */
    min-width: 0;
    /* Allow shrinking */
}

/* Mobile Icons */
.wpmx-mh-icon-link,
.wpmx-mh-icon-btn {
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    /* Increased touch target */
    flex-shrink: 0;
    background: transparent !important;
    /* Fix square bg */
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    border-radius: 50%;
    /* Hover effect circle */
    transition: background 0.2s ease;
}

.wpmx-mh-icon-link:active,
.wpmx-mh-icon-btn:active {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Luxury App Store Button */
.wpmx-luxury-app-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    padding: 0 1rem;
    /* Matched snippet */
    border-radius: 5.375rem;
    /* Matched snippet */
    height: 2.75rem;
    /* Matched snippet */
    gap: 0.5rem;
    /* Matched snippet */
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    /* Matched snippet */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: none;
    flex-shrink: 0;
    cursor: pointer;
}

.wpmx-luxury-app-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    /* Matched snippet */
}

.app-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-btn-icon svg {
    width: 1.25rem;
    /* Matched snippet */
    height: 1.25rem;
    /* Matched snippet */
}

.app-btn-text {
    display: inline-grid;
    text-align: left;
    padding-right: 0.5rem;
    color: #fff;
    background: linear-gradient(to right, #9f9f9f 0, #fff 10%, #868686 20%);
    background-position: 0;
    background-size: 200px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    animation-fill-mode: forwards;
    -webkit-text-size-adjust: none;
}

.app-btn-small {
    font-size: 10px;
    /* Matched snippet */
    font-weight: 500;
    line-height: 1;
    /* Matched snippet */
    letter-spacing: -0.05em;
    /* Matched snippet */
}

.app-btn-large {
    font-size: 1rem;
    /* Matched snippet */
    font-weight: bold;
    /* Matched snippet */
    line-height: 1;
    /* Matched snippet */
    margin: 0;
}

@-moz-keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}

@-webkit-keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}

@-o-keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}

@keyframes shine {
    0% {
        background-position: -200px;
    }

    100% {
        background-position: 200px;
    }
}

/* Specific Adjustments for Small Screens */
@media (max-width: 480px) {
    .wpmx-luxury-app-btn {
        padding: 4px 4px 4px 10px;
        height: 38px;
        gap: 6px;
    }

    .app-btn-icon svg {
        width: 18px;
        height: 18px;
    }

    .app-btn-large {
        font-size: 13px;
    }

    .app-btn-small {
        font-size: 8px;
    }
}

/* Dark Mode Inversion or Enhancement */
@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-luxury-app-btn {
        background: #fff;
        color: #000 !important;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }

    body:not(.wpmx-theme-light) .wpmx-luxury-app-btn:hover {
        background: #f0f0f0;
    }

    body:not(.wpmx-theme-light) .luxury-shimmer {
        background: linear-gradient(to right,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.05) 50%,
                rgba(0, 0, 0, 0) 100%);
    }
}

body.wpmx-theme-dark .wpmx-luxury-app-btn {
    background: #fff;
    color: #000 !important;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

body.wpmx-theme-dark .wpmx-luxury-app-btn:hover {
    background: #f0f0f0;
}

body.wpmx-theme-dark .luxury-shimmer {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0) 100%);
}

/* App Button - Premium Upgrade */
.wpmx-btn-app-download {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    padding: 0 14px;
    /* Reduced from 18px */
    border-radius: 100px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-right: 4px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* Added gap instead of margin */
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 34px;
    box-sizing: border-box;
    cursor: pointer;
}

.wpmx-btn-app-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #000 0%, #222 100%);
}

.wpmx-btn-app-download:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wpmx-btn-app-download svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) .wpmx-btn-app-download {
        background: linear-gradient(135deg, #fff 0%, #eee 100%);
        color: #000 !important;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    body:not(.wpmx-theme-light) .wpmx-btn-app-download:hover {
        background: #fff;
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
    }
}

body.wpmx-theme-dark .wpmx-btn-app-download {
    background: linear-gradient(135deg, #fff 0%, #eee 100%);
    color: #000 !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.wpmx-theme-dark .wpmx-btn-app-download:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

@media (max-width: 380px) {

    /* Hide App button on very small screens to save space */
    .wpmx-btn-app-download {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {

    body:not(.wpmx-theme-light) .wpmx-mh-icon-link,
    body:not(.wpmx-theme-light) .wpmx-mh-icon-btn {
        color: #fff;
    }

    body:not(.wpmx-theme-light) .wpmx-mh-icon-link:active,
    body:not(.wpmx-theme-light) .wpmx-mh-icon-btn:active {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    body:not(.wpmx-theme-light) .wpmx-btn-app-download {
        background: #fff;
        color: #000 !important;
    }
}

body.wpmx-theme-dark .wpmx-mh-icon-link,
body.wpmx-theme-dark .wpmx-mh-icon-btn {
    color: #fff;
}

body.wpmx-theme-dark .wpmx-mh-icon-link:active,
body.wpmx-theme-dark .wpmx-mh-icon-btn:active {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.wpmx-theme-dark .wpmx-btn-app-download {
    background: #fff;
    color: #000 !important;
}

/* Desktop Media Query: Switch Back */
@media (min-width: 768px) {
    .wpmx-header-container {
        display: flex;
    }

    .wpmx-mobile-header-layout {
        display: none;
    }

    /* Scale up App Button for Desktop */
    .wpmx-btn-app-download {
        display: inline-flex;
        font-size: 12px;
        padding: 8px 20px;
        letter-spacing: 0.5px;
    }
}

/* Mobile Search Input - High Specificity Override */
#wpmx-mobile-menu input.wpmx-mobile-search-input {
    width: 100% !important;
    background: #f5f5f7 !important;
    /* iOS style grey */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    /* Managed to 12px to match desktop */
    padding: 12px 16px 12px 48px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #111 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    line-height: normal !important;
    margin: 0 !important;
    height: auto !important;
}

#wpmx-mobile-menu input.wpmx-mobile-search-input:focus {
    background: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--wpmx-primary-accent, #000) !important;
}

@media (prefers-color-scheme: dark) {
    body:not(.wpmx-theme-light) #wpmx-mobile-menu input.wpmx-mobile-search-input {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: transparent !important;
        color: #fff !important;
    }

    body:not(.wpmx-theme-light) #wpmx-mobile-menu input.wpmx-mobile-search-input:focus {
        background: #111 !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }
}

body.wpmx-theme-dark #wpmx-mobile-menu input.wpmx-mobile-search-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.wpmx-theme-dark #wpmx-mobile-menu input.wpmx-mobile-search-input:focus {
    background: #111 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* 3. The Clean Finish (Bottom Bar) - Premium Update */
.wpmx-footer-bottom-ultra {
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); REMOVED for cleaner look */
    padding: 10px 0;
    margin-top: 40px;
    font-size: 14px;
    background: #0f0f0f;
    /* Match footer bg */
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
    width: 100%;
}

.copyright-ultra {
    color: #888;
    font-weight: 900;
    /* Match ultra-footer-title */
    letter-spacing: 1px;
    /* Match ultra-footer-title */
    text-transform: uppercase;
    font-size: 11px;
}

.wpmx-designer-credit {
    font-weight: 900;
    /* Match ultra-footer-title */
    color: #666;
    /* Reduced brightness from #fff */
    letter-spacing: 1px;
    /* Match ultra-footer-title */
    text-transform: uppercase;
    font-size: 11px !important;
}

.wpmx-designer-credit span {
    color: #ff0000;
    /* Full Red */
    font-size: 14px;
    vertical-align: middle;
}

.wpmx-designer-credit a {
    background: conic-gradient(from 0deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6, #ef4444) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: bold !important;
    text-decoration: none;
    text-transform: none;
    /* Keep SRkh as written */
    font-size: 15px;
    letter-spacing: 1px;
    /* Match other texts */
    border-bottom: none;
    /* Removed underline */
    padding-bottom: 0;
    transition: all 0.3s ease;
}

.wpmx-designer-credit a:hover {
    letter-spacing: 2px;


}

/* Skeleton Text for Live Stats */
.wpmx-skeleton-text {
    display: inline-block;
    min-width: 5ch;
    /* Reserve space for ~5 digits */
    height: 1em;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: wpmx-shimmer 1.5s infinite;
    color: transparent !important;
    /* Hide placeholder text */
    vertical-align: middle;
    margin-bottom: 2px;
}

/* Ensure live numbers also respect min-width to prevent jumping */
.wpmx-live-views,
.wpmx-live-downloads {
    display: inline-block;
    min-width: 5ch;
    text-align: center;
}

/* Badge Skeleton */
.wpmx-badge-skeleton {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: wpmx-shimmer 1.5s infinite;
    vertical-align: middle;
}

body.wpmx-theme-dark .wpmx-skeleton-text,
body.wpmx-theme-dark .wpmx-badge-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
}

/* Custom Tooltip */
.wpmx-tooltip {
    position: relative;
    cursor: help;
}

.wpmx-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 36px;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wpmx-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.wpmx-tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.wpmx-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   2X PREMIUM UPSCALE MODAL - "Coming Soon"
   ========================================================================== */
.wpmx-premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.wpmx-premium-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.wpmx-premium-modal-content {
    background: #ffffff;
    max-width: 440px;
    width: 90%;
    padding: 40px;
    border-radius: 32px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.wpmx-theme-dark .wpmx-premium-modal-content {
    background: #111;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wpmx-premium-modal-overlay.is-visible .wpmx-premium-modal-content {
    transform: scale(1) translateY(0);
}

.wpmx-premium-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

body.wpmx-theme-dark .wpmx-premium-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

.wpmx-premium-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111827;
}

body.wpmx-theme-dark .wpmx-premium-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}


.wpmx-premium-badge {
    display: inline-block;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.wpmx-premium-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

body.wpmx-theme-dark .wpmx-premium-modal-title {
    color: #fff;
}

.wpmx-premium-modal-desc {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

body.wpmx-theme-dark .wpmx-premium-modal-desc {
    color: #9ca3af;
}

/* Premium Email Form - Smooth Transition System */
.wpmx-premium-modal-actions {
    margin-top: 20px;
    position: relative;
}

.wpmx-btn-premium-action {
    background: #111827;
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.wpmx-theme-dark .wpmx-btn-premium-action {
    background: #fff;
    color: #000;
}

.wpmx-btn-premium-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* State: Form Active */
.wpmx-premium-modal-actions.has-form .wpmx-btn-premium-action {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.wpmx-premium-email-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    overflow: hidden;
}

.wpmx-premium-modal-actions.has-form .wpmx-premium-email-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 15px;
}

.wpmx-premium-email-form {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpmx-premium-email-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f9fafb;
    font-size: 15px;
    color: #111827;
    transition: all 0.3s ease;
}

.wpmx-premium-email-input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    background: #fff;
}

body.wpmx-theme-dark .wpmx-premium-email-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.wpmx-theme-dark .wpmx-premium-email-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.wpmx-btn-premium-submit {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.wpmx-btn-premium-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wpmx-premium-email-msg {
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    font-weight: 600;
}

.wpmx-premium-email-msg.success {
    color: #10b981;
}

.wpmx-premium-email-msg.error {
    color: #ef4444;
}