:root {
    --explorer-bg: #0a0a0a;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: var(--sw-accent);
    --primary-rgb: 49, 168, 255;
    --accent-orange: #ff4d00;
    --text-muted: #888;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.portfolio-explorer {
    background: var(--explorer-bg);
    margin: 0;
    padding-top: 34px;
    font-family: 'Outfit', sans-serif;
    color: var(--sw-heading);
    overflow-x: clip;
}

body.software-modal-open {
    overflow: hidden;
}

/* Page Outer Padding */
.explorer-wrapper {
    max-width: 98%;
    /* padding-top: 100px; */
    margin: 0 auto;
}



/* --- ARCHIVE HEADER --- */
.archive-explorer-wrapper {
    padding-bottom: 120px;
}

.archive-profile-hero {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    height: 250px;
    margin: 18px auto 18px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(255, 77, 0, 0.02)), rgba(10, 10, 12, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.archive-profile-thumb,
.archive-profile-copy {
    position: relative;
    z-index: 1;
}

.archive-profile-thumb {
    width: 130px;
    aspect-ratio: 1;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
    overflow: hidden;
}

.archive-profile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-profile-thumb iconify-icon {
    font-size: 36px;
    color: var(--primary);
}

.archive-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
    font-weight: 700;
}

.archive-breadcrumbs a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.archive-breadcrumbs a:hover {
    color: var(--sw-heading);
}

.archive-breadcrumb-separator {
    color: rgba(var(--primary-rgb), 0.8);
}

.archive-profile-copy h1 {
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1;
    margin: 0 0 8px;
    font-weight: 900;
    color: var(--sw-heading);
}

.archive-profile-copy p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.45;
    max-width: 780px;
    margin: 0;
}

.archive-hierarchy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.archive-hierarchy a,
.archive-hierarchy span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                color 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.archive-hierarchy a:hover {
    background: rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--sw-heading);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .explorer-wrapper {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    .archive-profile-hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 9px;
        text-align: center;
        height: fit-content;
        margin: 12px 0;
        grid-auto-flow: row dense;
        align-content: space-between;
        align-items: center;
        justify-items: center;
    }

    .archive-profile-thumb {
        width: 92px;
        margin: 0 auto;
    }

    .archive-breadcrumbs,
    .archive-hierarchy {
        justify-content: center;
    }
}

/* --- ARCHIVE FAQS --- */
.sw-archive-faqs-wrapper {
    margin: 10px auto 40px;
    padding: 24px 32px;
    background: rgba(15, 15, 18, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

.sw-archive-faqs-title {
    font-size: 24px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--sw-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-archive-faqs-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.sw-faqs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sw-faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.sw-faq-item[open] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.sw-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--sw-heading);
    list-style: none; /* Hide default arrow */
    user-select: none;
}

.sw-faq-question::-webkit-details-marker {
    display: none; /* Hide default arrow in webkit */
}

.sw-faq-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-faq-item[open] .sw-faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.sw-faq-answer {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    animation: faq-fade-in 0.3s ease-out;
}

.sw-faq-answer p:last-child {
    margin-bottom: 0;
}

@keyframes faq-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HERO SECTION --- */
.explorer-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
}

.hero-glass-card {
    padding: 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--sw-heading) 30%, #1982c4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(25, 130, 196, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 450px;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Ensure items don't stretch to full width */
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sw-heading);
    display: inline-flex;
    align-items: center;
}

.stat-pill strong {
    color: var(--sw-heading);
    font-size: 15px;
    margin-right: 4px;
}

/* Domain Taxonomy List */
.hero-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.domain-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                color 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.domain-tag iconify-icon {
    font-size: 18px;
    color: var(--primary);
}

.domain-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--sw-heading);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

.hero-btn-sponsor {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 50px;
    transition: 0.3s;
}

.hero-btn-sponsor:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 51, 0, 0.3);
}

/* Hero Right Viewport */
.hero-featured-viewport {
    background: var(--sw-bg);
    border-radius: 12px;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    /* Mobile Safari border-radius fix for videos */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.hero-featured-viewport img,
.hero-featured-viewport video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    /* Ensure inner video is rounded on mobile Safari if overflow:hidden fails */
}

.viewport-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--accent-orange);
    color: white;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* --- NAV FILTERS --- */
.explorer-nav {
    position: sticky;
    top: 68px;
    z-index: 100;
    background: rgba(10, 10, 12, 0.75);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

}


.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    /* Natural left-to-right reading flow */
    min-width: 0;
    width: 100%;
}

.nav-search-separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    /* Premium vertical separator line */
    margin: 0 15px;
    flex-shrink: 0;
}

.filter-track {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 15px 15px 0;
    /* Zero left padding inside scrollcontainer to prevent text bleed */
    margin-left: 15px;
    /* Stable non-scrollable gap on the left of the scroll track */
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    align-items: center;
}

@supports (scrollbar-width: none) {
    .filter-track {
        scrollbar-width: none;
    }
}

.filter-track.grabbing {
    cursor: grabbing;
    scroll-behavior: auto;
    /* Instant scroll while dragging */
}

.filter-track::-webkit-scrollbar {
    display: none;
}

.nav-search {
    flex: 0 0 auto;
}

.search-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 30px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 200px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-box:focus-within {
    width: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.search-box i {
    color: var(--sw-heading);
    font-size: 18px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--sw-heading);
    font-size: 13px;
    outline: none;
    width: 100%;
    font-family: inherit;
}

/* Tab/Mob specific search adjustment */
@media (max-width: 900px) {
    .explorer-nav .nav-container {
        display: flex;
        flex-direction: row;
        /* Match desktop left-to-right flow */
        align-items: center;
        justify-content: flex-start;
        /* Left aligned flow */
        gap: 8px;
        /* Perfect 8px gap matching scroll track */
        position: relative;
        min-height: 58px;
        padding: 0 10px;
        width: 100%;
    }

    .explorer-nav .nav-search {
        flex: 0 0 auto;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 10;
        /* Removed order: 2 to flow naturally */
    }

    .explorer-nav .nav-search-separator {
        display: none;
        /* Hide separator on mobile to maximize scroll space */
    }

    .explorer-nav .search-box {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 22px;
        /* Fixed pixel radius for smooth animation */
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        position: relative;
        display: flex;
        align-items: center;
    }

    .explorer-nav .search-svg-icon {
        position: absolute;
        left: 13px;
        pointer-events: none;
        z-index: 1;
        transition: all 0.3s;
    }

    .explorer-nav .search-box:focus-within {
        width: 220px;
        border-radius: 22px;
        /* Same radius makes it a pill when wide */
        padding-left: 40px;
        background: var(--sw-bg-card);
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    }

    .explorer-nav .search-box input {
        opacity: 0;
        width: 100%;
        height: 100%;
        padding: 0 15px 0 0;
        margin: 0;
        border: none;
        outline: none;
        background: transparent;
        cursor: pointer;
        z-index: 2;
        transition: opacity 0.3s;
        /* No visibility: hidden here so it stays focusable/clickable */
    }

    .explorer-nav .search-box:focus-within input {
        opacity: 1;
        cursor: text;
    }

    .explorer-nav .filter-track {
        flex: 1;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 0;
        margin-left: 0;
        /* Zero margin-left on mobile for uniform gaps */
        scroll-behavior: smooth;
        /* Removed order: 1 to flow naturally */
        align-items: center;
    }

    @supports (scrollbar-width: none) {
        .explorer-nav .filter-track {
            scrollbar-width: none;
        }
    }

    .explorer-nav .filter-track::-webkit-scrollbar {
        display: none;
    }



    /* Mobile Icon-only styling for Categories and All Domains (match search circle) */
    .explorer-nav .category-dropdown-wrapper .category-trigger,
    .explorer-nav .filter-btn[data-filter="all"] {
        width: 44px;
        height: 44px;
        border-radius: 22px;
        /* Perfect circle, identical to Search button */
        padding: 0;
        justify-content: center;
        align-items: center;
        display: inline-flex;
        flex-shrink: 0;
        background: #252528;
    }

    .explorer-nav .category-dropdown-wrapper .category-trigger .btn-text,
    .explorer-nav .category-dropdown-wrapper .category-trigger .btn-arrow,
    .explorer-nav .filter-btn[data-filter="all"] .btn-text {
        display: none;
    }

    .explorer-nav .category-dropdown-wrapper .category-trigger .nav-term-icon,
    .explorer-nav .filter-btn[data-filter="all"] .nav-term-icon {
        margin: 0;
        background-color: #3a3a3e;
        border-radius: 50%;
        /* Perfect circular inner backgrounds to match icons */
    }

    .explorer-nav .category-dropdown-wrapper {
        margin-right: 0;
        /* Reset margin on mobile to use flex gap */
    }
}

/* --- CATEGORY DROPDOWN --- */
.category-dropdown-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 12px;
    /* Perfect desktop/tablet spacing between Categories and All Domains */
}

/* Styling Categories trigger and All Domains button to be exactly identical */
.category-dropdown-wrapper .category-trigger,
.filter-btn[data-filter="all"] {
    background: #252528;
    /* Same background color as active All Domains */
    color: var(--sw-heading);
    border-radius: 10px;
    padding-left: 6px;
    transition: background 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-dropdown-wrapper .category-trigger:hover,
.filter-btn[data-filter="all"]:hover {
    background: #2d2d31;
    /* Subtle premium hover highlight */
    color: var(--sw-heading);
}

/* Icon container matching */
.category-dropdown-wrapper .category-trigger .nav-term-icon,
.filter-btn[data-filter="all"] .nav-term-icon {
    background-color: #3a3a3e;
    /* Identical icon backdrop color */
    color: var(--sw-heading);
}

.category-dropdown-wrapper .category-trigger:hover .nav-term-icon,
.filter-btn[data-filter="all"]:hover .nav-term-icon {
    background-color: #45454b;
    /* Subtle hover state icon backdrop */
}

.category-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);

    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge */
}

@supports (scrollbar-width: none) {
    .category-dropdown-list {
        scrollbar-width: none;
    }
}

.category-dropdown-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.category-dropdown-wrapper.open .category-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.category-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: rgba(244, 244, 246, 0.65);
    transition: background 0.2s ease,
                color 0.2s ease,
                border-radius 0.2s ease;
}

.category-checkbox-label:hover,
.category-checkbox-label:active {
    background: rgba(244, 244, 246, 0.08);
    color: #f4f4f6;
}

.category-checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(244, 244, 246, 0.15);
    color: #f4f4f6;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.category-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border: 2px solid rgba(244, 244, 246, 0.3);
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease,
                background-color 0.2s ease,
                transform 0.2s ease;
    flex-shrink: 0;
}

.category-checkbox-label:hover input[type="checkbox"],
.category-checkbox-label:active input[type="checkbox"] {
    border-color: rgba(244, 244, 246, 0.6);
}

.category-checkbox-label input[type="checkbox"]::before {
    content: "✓";
    font-size: 12px;
    font-weight: 900;
    color: #ececed;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
}

.category-checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.category-checkbox-label input[type="checkbox"]:checked {
    border-color: var(--sw-accent);
    background-color: var(--sw-accent);
}

.filter-btn {
    background: #252528;
    border: none;
    color: #ccc;
    padding: 6px 14px 6px 6px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
    line-height: 1.25;
    cursor: pointer;
    transition: background 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                color 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.filter-btn i,
.nav-term-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sw-border-light);
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.2s ease;
    color: #eee;
}

.nav-term-icon {
    object-fit: cover;
    padding: 0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sw-heading);
    transform: translateY(-1px);
}

.filter-btn:hover i {
    background-color: #444;
}

.filter-btn.active {
    background: #252528;
    color: var(--sw-heading);
}

.filter-btn.active i {
    background-color: #3a3a3e;
}



/* --- DOMAIN DEPTH COLORS --- */
.filter-track .filter-btn.depth-0:hover,
.filter-track .filter-btn.depth-0.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.filter-track .filter-btn.depth-1:hover,
.filter-track .filter-btn.depth-1.active {
    background: rgba(0, 191, 255, 0.15);
    color: #00BFFF;
}

.filter-track .filter-btn.depth-2:hover,
.filter-track .filter-btn.depth-2.active {
    background: rgba(135, 206, 250, 0.15);
    color: #87CEFA;
}

/* --- RESPONSIVE GRID MODES (ArtStation Match) --- */
.portfolio-grid {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* No transition on grid — layout changes should be instant (ArtStation approach) */
}

/* Base (Mobile < 640px) */
.grid-mode-a {
    grid-template-columns: 1fr;
}

.grid-mode-b {
    grid-template-columns: repeat(2, 1fr);
}

.grid-mode-c {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 640px) {
    .grid-mode-a {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-mode-a {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid-mode-a {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1440px) {
    .grid-mode-a {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(6, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 1680px) {
    .grid-mode-a {
        grid-template-columns: repeat(6, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(7, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1920px) {
    .grid-mode-a {
        grid-template-columns: repeat(7, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(8, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (min-width: 2200px) {
    .grid-mode-a {
        grid-template-columns: repeat(8, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(9, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(10, 1fr);
    }
}

.explorer-card {
    text-decoration: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sw-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Appear animation via CSS transition (replaces setTimeout stagger) */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1) var(--appear-delay, 0ms),
                transform 0.45s cubic-bezier(0.23, 1, 0.32, 1) var(--appear-delay, 0ms),
                border-color 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.explorer-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    z-index: 10;
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.12);
}

.explorer-card[data-href] {
    cursor: pointer;
}

.explorer-card[data-href]:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb), 0.9);
    outline-offset: 2px;
}

.aspect-square {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    z-index: 1;
    /* Establish isolated local stacking context to prevent child z-indexes (like interactive layer) from leaking */
}

.aspect-square img,
.aspect-square video,
.no-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: inherit;
}

/* No full-image hover overlay; keep readability via the bottom gradient only. */
.aspect-square::after {
    content: none;
}

/* Single-Image Visual System (replaces previous dual-image stack) */
.aspect-square img.card-visual-img {
    pointer-events: auto;
    /* Parent .explorer-card[data-href] handles navigation; image stays clickable for right-click / drag */
}

.no-image-placeholder {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.explorer-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* Scale, blur, and dim the bottom visual layer on card hover */
.explorer-card:hover .aspect-square .card-visual-img,
.explorer-card:hover .aspect-square video {
    transform: scale(1.03);
    filter: blur(3px) brightness(0.55);
    /* Visual blur applied safely only to the background */
}

/* Scale the top transparent layer identically to keep browser hover icons aligned with scale */


/* Card Overlay Enhancement — opacity only, no transform (GPU-friendly) */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    /* Clean layering: above aspect-square thumbnail (z-index: 1) and chips (z-index: 10) */
    padding: 30px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.explorer-card:hover .card-overlay {
    opacity: 1;
}

.card-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
}

/* Author Info */
.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    object-fit: cover;
    filter: none;
    /* No transition — keep avatar simple */
}

.explorer-card:hover .author-avatar {
    border-color: var(--sw-heading);
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.author-name {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-tick {
    color: #1a82c4;
    font-size: 10px;
}

.software-card-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: var(--primary);
    opacity: 0.8;
}

/* --- UPDATED CARD LAYOUT --- */

.explorer-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-chips-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 64px);
    pointer-events: none;
    z-index: 10;
    /* Clean layering: above aspect-square thumbnail (z-index: 1) */
}

.card-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 2px 7px 2px 2px;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 50px;
    background: var(--chip-color, var(--sw-bg-card));
    color: var(--sw-heading);
    box-shadow: none;
}

/* No icon: symmetric pill padding */
.card-chip:not(:has(.card-chip-icon)) {
    padding-left: 7px;
}

/* For Text: perfectly aligns inside flexbox layout */
.card-chip-label {
    display: inline-block;
    line-height: 1;
    font-family: inherit;
    letter-spacing: -0.01em;
}

/* For Icon: maintains aspect ratio and scales */
.card-chip-icon {
    width: 16px;
    height: 16px;
    background-color: var(--sw-bg-elevated);
    border-radius: 50px;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    object-fit: cover;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

/* When the icon is a real <img> (term image type) — fill the black circle */
.card-chip-icon.sw-term-visual-image {
    padding: 2px;
}

.license-chips-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 1;
    pointer-events: auto;
}

.license-chip {
    --chip-border-mixed: color-mix(in srgb, var(--chip-color) 55%, rgba(255, 255, 255, 0.35));
    border: 1px solid var(--chip-color);
    border: 1px solid var(--chip-border-mixed);
    color: var(--sw-heading);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--chip-color) 45%, transparent) 0%,
            color-mix(in srgb, var(--chip-color) 18%, transparent) 100%),
        rgba(255, 255, 255, 0.06);
    /* Glass: tier-tinted gradient + blurred backdrop */
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        0 6px 20px color-mix(in srgb, var(--chip-color) 30%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease;
}

.license-chip:hover {
    transform: translateY(-2px) scale(1.06);
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--chip-color) 60%, transparent) 0%,
            color-mix(in srgb, var(--chip-color) 30%, transparent) 100%),
        rgba(255, 255, 255, 0.1);
    --chip-border-hover-mixed: color-mix(in srgb, var(--chip-color) 70%, rgba(255, 255, 255, 0.5));
    border-color: var(--chip-color);
    border-color: var(--chip-border-hover-mixed);
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--chip-color) 45%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.license-chip .card-chip-icon,
.license-chip .card-chip-label {
    color: var(--sw-heading);
}

/* Top Right Actions — opacity + slide-up entrance */
.card-actions-top-right {
    position: absolute;
    bottom: 12px;
    right: 7px;
    top: auto;
    display: flex;
    gap: 5px;
    opacity: 0;
    pointer-events: auto;
    transform: translateY(8px);
    transition:
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
    /* Clean layering: above image and overlays */
}

.explorer-card:hover .card-actions-top-right {
    opacity: 1;
    transform: translateY(0);
}

/* "NEW" Icon Badge — floating neon green icon */
.card-chip-new-icon {
    font-size: 40px;
    color: #02ff00;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* NEW Badge — own container, same top-right position as actions */
.card-new-badge {
    position: absolute;
    top: 2px;
    right: 3px;
    z-index: 10;
    /* Clean layering: above aspect-square thumbnail (z-index: 1) */
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    backdrop-filter: blur(12px) saturate(1.6);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    outline: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.15);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-btn:active {
    transform: scale(0.92);
    transition-duration: 0.1s;
}

.action-btn:focus,
.action-btn:active {
    outline: none;
    border: none;
}

.action-btn.active iconify-icon {
    color: var(--primary);
    /* Just color the icon, not the whole background */
}

.card-stats-wrapper {
    position: relative;
    z-index: 31;
    pointer-events: auto;
}

.stats-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    backdrop-filter: blur(12px) saturate(1.6);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.stats-trigger:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15) rotate(90deg);
    box-shadow:
        0 8px 22px color-mix(in srgb, var(--primary) 40%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stats-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    top: auto;
    margin-top: 0;
    margin-bottom: 6px;
    background: rgba(15, 15, 15, 0.55);
    /* Glass panel for the popup */
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px;
    border-radius: 12px;
    width: 140px;
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(24px) saturate(1.7);
    backdrop-filter: blur(24px) saturate(1.7);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(8px) scale(0.94);
    transform-origin: bottom right;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 35;
}

.card-stats-wrapper.active .stats-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ccc;
    margin-bottom: 8px;
    padding: 4px 6px;
    border-radius: 6px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Stagger entrance for each row */
    opacity: 0;
    transform: translateX(6px);
}

.card-stats-wrapper.active .stat-item {
    opacity: 1;
    transform: translateX(0);
}

.card-stats-wrapper.active .stat-item:nth-child(1) {
    transition-delay: 0.05s;
}

.card-stats-wrapper.active .stat-item:nth-child(2) {
    transition-delay: 0.12s;
}

.card-stats-wrapper.active .stat-item:nth-child(3) {
    transition-delay: 0.19s;
}

.card-stats-wrapper.active .stat-item:nth-child(4) {
    transition-delay: 0.26s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
    transform: translateX(2px);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    color: var(--primary);
    font-size: 14px;
    width: 14px;
    text-align: center;
}

/* Bottom Info Section — always visible, minimal transition */

.card-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 42px;
}

.domain-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.domain-icon {
    width: 14px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

iconify-icon.domain-icon {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    font-size: 14px;
    justify-content: center;
}

.domain-icon-fallback {
    font-size: 14px;
    color: var(--primary);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-heading);
    margin: 0;
    line-height: 1.3;
}


/* --- FOOTER CONTROLS --- */
.explorer-footer {
    position: sticky;
    bottom: 22px;
    z-index: 250;
    width: 95%;
    max-width: none;
    margin: 28px auto 22px;
}

.footer-glass {
    background: transparent;
    border: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 0;
}


.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    width: 100%;
}

.footer-left {
    justify-content: flex-start;
    gap: 10px;
}

.footer-right {
    justify-content: flex-end;
    position: relative;
}

.footer-center {
    justify-content: center;
    position: relative;
    /* For absolute popup anchoring */
}

/* Layout Toggles Group */
.layout-toggles-wrapper {
    background-color: var(--sw-heading);
    border-radius: 50px;
    display: flex;
    gap: 0;
    align-items: center;
    position: relative;
    justify-content: center;
}

.layout-toggle {
    background: var(--sw-bg-elevated);
    border: none;
    color: var(--sw-heading);
    width: 0;
    height: 44px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: none;
    transition: width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        margin 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease,
        visibility 0.25s;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.layout-toggle i {
    min-width: 44px;
    text-align: center;
    transform: scale(0.3) rotate(-45deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.layout-toggle.active {
    width: 44px;
    opacity: 1;
    visibility: visible;
    background: var(--sw-bg);
    color: var(--sw-heading);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.layout-toggle.active i {
    transform: scale(1) rotate(0deg);
}

.layout-toggles-wrapper:hover .layout-toggle,
.layout-toggles-wrapper.open .layout-toggle {
    width: 44px;
    opacity: 1;
    visibility: visible;
    margin: 2px 2px 2px 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.layout-toggles-wrapper:hover .layout-toggle i,
.layout-toggles-wrapper.open .layout-toggle i {
    transform: scale(1) rotate(0deg);
}

.layout-toggles-wrapper:hover .layout-toggle:not(.active),
.layout-toggles-wrapper:hover .layout-toggle:not(.active) i {
    transition-delay: 0.3s;
}

.layout-toggles-wrapper:not(:hover) .layout-toggle:not(.active),
.layout-toggles-wrapper:not(:hover) .layout-toggle:not(.active) i {
    transition-delay: 0s;
}

.layout-toggles-wrapper.open .layout-toggle,
.layout-toggles-wrapper.open .layout-toggle i {
    transition-delay: 0s;
}

.layout-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.domain-tabs {
    display: flex;
    background: var(--sw-heading);
    padding: 6px;
    gap: 5px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tab-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    background: var(--sw-bg);
    border-radius: 100px;
    transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.domain-btn {
    border: none;
    color: var(--sw-bg);
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.domain-btn .sw-name {
    color: inherit;
}

.domain-btn iconify-icon,
.domain-btn i,
.tab-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.8;
    transition: 0.3s;
    flex-shrink: 0;
}

.tab-icon {
    object-fit: cover;
    border-radius: 4px;
    opacity: 1;
    padding: 2px;
    /* Shrinks image to match font icon weight */
}

.domain-btn.active iconify-icon,
.domain-btn.active i,
.domain-btn.active .tab-icon {
    opacity: 1;
}

.domain-btn:hover {
    color: #444;
    background: rgba(0, 0, 0, 0.05);
}

.domain-btn.active {
    background: var(--sw-bg);
    color: var(--sw-heading);
}

/* --- COMING SOON (empty filter pill) --- */
.domain-btn.is-coming-soon {
    opacity: 0.55;
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.55);
    background: transparent;
    position: relative;
    transition: opacity 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.domain-btn.is-coming-soon:hover {
    opacity: 0.7;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.04);
    transform: scale(0.98);
    filter: blur(0.4px);
}

.domain-btn.is-coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 15, 15, 0.92);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    backdrop-filter: blur(12px) saturate(1.6);
    color: var(--sw-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.domain-btn.is-coming-soon::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15, 15, 15, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.domain-btn.is-coming-soon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.domain-btn.is-coming-soon:hover::before {
    opacity: 1;
}

/* --- MOBILE POPUP DOMAIN TABS --- */
/* Desktop Defaults */
/* Desktop-only rules to hide mobile elements */
@media (min-width: 901px) {

    .explorer-footer .mobile-domain-trigger,
    .explorer-footer .mobile-layout-toggles,
    .explorer-footer .mobile-popup-separator,
    .explorer-footer .mobile-popup-close {
        display: none;
    }

    .explorer-footer .domain-tabs-wrapper {
        display: flex;
    }
}

@media (max-width: 900px) {
    .explorer-footer {
        width: 100%;
        bottom: 14px;
        padding: 0 12px;
        margin: 24px auto 18px;
    }

    .explorer-footer .footer-glass {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        gap: 0;
        border-radius: 50px;
        background: rgba(0, 0, 0, 0.83);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 8px 11px;
    }

    .explorer-footer .footer-left,
    .explorer-footer .footer-center,
    .explorer-footer .footer-right {
        width: 100%;
        display: flex;
        align-items: center;
    }

    .explorer-footer .footer-left {
        justify-content: flex-start;
    }

    .explorer-footer .footer-center {
        justify-content: center;
    }

    .explorer-footer .footer-right {
        justify-content: flex-end;
    }

    /* Hide desktop toggles and desktop domain tabs on mobile */
    .explorer-footer .footer-left .layout-toggles-wrapper {
        display: none;
    }

    .explorer-footer .footer-center .domain-tabs {
        display: none;
    }

    /* === MOBILE TRIGGER BUTTON === */
    .explorer-footer .mobile-domain-trigger {
        display: flex;
        background: var(--sw-heading);
        color: #060606;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0 16px;
        height: 38px;
        border-radius: 50rem;
        font-weight: 600;
        cursor: pointer;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-family: "Inter", sans-serif;
        letter-spacing: 0.015em;
        transition: opacity 0.25s ease, background 0.2s ease;
    }

    .explorer-footer .mobile-domain-trigger:active {
        background: #303034;
    }

    .explorer-footer .mobile-domain-trigger.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .explorer-footer .mobile-domain-trigger i {
        font-size: 15px;
        opacity: 0.7;
    }

    /* === MOBILE POPUP CARD === */
    .explorer-footer .domain-tabs-wrapper {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(10px) scale(0.96);
        background: #ffffff;
        border-radius: 16px;
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        width: 200px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2000;
    }

    .explorer-footer .domain-tabs-wrapper.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    /* === GRID SIZER ROW (inside popup) === */
    .explorer-footer .mobile-layout-toggles {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 4px 16px 12px;
    }

    .explorer-footer .mobile-layout-toggles .layout-toggle {
        width: 36px;
        height: 36px;
        opacity: 1;
        visibility: visible;
        background: transparent;
        color: rgba(0, 0, 0, 0.6);
        box-shadow: none;
        margin: 0;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .explorer-footer .mobile-layout-toggles .layout-toggle svg,
    .explorer-footer .mobile-layout-toggles .layout-toggle i,
    .explorer-footer .mobile-layout-toggles .layout-toggle iconify-icon {
        color: inherit;
        min-width: auto;
        transform: none;
        font-size: 18px;
    }

    .explorer-footer .mobile-layout-toggles .layout-toggle.active {
        color: #ffffff;
        background: #121212;
    }

    .explorer-footer .mobile-layout-toggles .layout-toggle:hover {
        color: #000000;
        background: rgba(0, 0, 0, 0.05);
    }

    /* === SEPARATOR === */
    .explorer-footer .mobile-popup-separator {
        display: block;
        height: 1px;
        background: rgba(0, 0, 0, 0.08);
        border: none;
        margin: 0;
    }

    /* === DOMAIN LIST (inside popup) === */
    .explorer-footer .domain-tabs-wrapper .domain-tabs {
        display: flex;
        flex-direction: column;
        background: transparent;
        padding: 8px 0;
        box-shadow: none;
        gap: 0;
    }

    .explorer-footer .domain-tabs-wrapper .domain-tabs .domain-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        background: transparent;
        border-radius: 0;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        font-family: "Inter", sans-serif;
        letter-spacing: 0.015em;
        border: none;
        transition: all 0.15s ease;
        opacity: 1;
        cursor: pointer;
        color: rgba(0, 0, 0, 0.7);
    }

    .explorer-footer .domain-tabs-wrapper .domain-tabs .domain-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #000000;
    }

    .explorer-footer .domain-tabs-wrapper .domain-tabs .domain-btn span {
        color: inherit;
    }

    .explorer-footer .domain-tabs-wrapper .domain-tabs .domain-btn.active {
        display: flex;
        color: #000000;
        background: transparent;
        font-weight: 600;
    }

    /* === CLOSE / ACTIVE TAB BUTTON === */
    .explorer-footer .mobile-popup-close {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: none;
        color: #000000;
        font-weight: 700;
        font-family: "Inter", sans-serif;
        padding: 10px 16px 6px;
        font-size: 13px;
        cursor: pointer;
        letter-spacing: 0.015em;
        transition: color 0.2s ease;
    }

    .explorer-footer .mobile-popup-close:hover {
        color: rgba(0, 0, 0, 0.6);
    }

    .explorer-footer .mobile-popup-close i {
        font-size: 16px;
    }
}

.software-trigger,
.explorer-close,
.go-to-top-btn,
.explorer-menu-toggle {
    background: var(--sw-bg-elevated);
    color: var(--sw-heading);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

/* Popup scale animation for go-to-top button */
.go-to-top-btn {
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease,
        visibility 0.3s;
}

.go-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.go-to-top-btn.visible:hover {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.software-trigger:hover,
.go-to-top-btn.visible:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .explorer-wrapper {
        padding-top: 0px;
    }

    .hero-glass-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 25px;
        text-align: center;
    }

    .hero-content-left {
        align-items: center;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    /* Hide non-essential elements for cleaner UI on mobile */
    .explorer-hero .hero-subtitle,
    .explorer-hero .hero-stats,
    .explorer-hero .hero-btn-sponsor {
        display: none;
    }

    .hero-content-right {
        display: block;
        /* Show the featured image */
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-featured-viewport {
        border-radius: 16px;
    }

    .grid-mode-a {
        grid-template-columns: repeat(1, 1fr);
    }

    .grid-mode-b {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-mode-c {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Compact Card for Mobile - Show icons/chips but hide text */
    .explorer-card .card-market-content,
    .explorer-card .card-blog-content,
    .explorer-card .card-course-content,
    .explorer-card .card-bottom-info,
    .explorer-card .card-overlay,
    .explorer-card .card-actions-top-right {
        display: none;
    }

    /* Keep license chips always visible and on top of the transformed image */
    .explorer-card .card-chips-top-left {
        visibility: visible;
        opacity: 1;
        display: flex;
        max-width: calc(100% - 10px);
        z-index: 50;
    }

    /* Keep NEW badge always on top of the transformed image */


    .explorer-card {
        border: none;
        border-radius: 12px;
        background: var(--sw-bg-card);
        overflow: hidden;
    }

    .portfolio-grid {
        gap: 2px;
        padding: 10px;
    }

    /* Disable all Hover Visual Effects (Scale, Blur, Darken) on Mobile */
    .explorer-card:hover .aspect-square::after,
    .explorer-card:hover .card-img-wrapper::after {
        display: none;
        opacity: 0;
    }

    .explorer-card:hover .aspect-square .card-visual-img,
    .explorer-card:hover .aspect-square video,
    .explorer-card:hover .card-img-wrapper img,
    .explorer-card:hover .card-img-wrapper video {
        transform: none;
        filter: none;
        /* Disables visual blur and brightness adjustments on hover/touch */
    }
}

/* Mobile Phone Specific Overrides */
@media (max-width: 600px) {

    /* Hide licensing chips completely on mobile phones to prevent visual clashing */
    .explorer-card .card-chips-top-left {
        display: none;
    }
}

/* MODAL STYLES */
.software-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.software-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- SOFTWARE PANEL (replaces centered modal) --- */
.software-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 32px);
    max-height: min(420px, 70vh);
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.software-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow pointing down to the trigger button */
.software-panel::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #0f0f12;
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.software-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 14px;
    gap: 8px;
}

.software-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sw-heading);
}

.software-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: var(--sw-bg-elevated);
    color: var(--sw-heading);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.software-panel-clear {
    background: var(--sw-bg-elevated);
    border: 2px solid var(--sw-heading);
    color: var(--sw-heading);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.software-panel-clear:hover {
    color: var(--sw-heading);
    background: #0a0a0a;
    border-color: var(--sw-heading);
}

.software-panel-clear:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.software-panel-list {
    list-style: none;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    min-height: 0;
}

@supports (scrollbar-width: thin) {
    .software-panel-list {
        scrollbar-width: thin;
    }
}
@supports (scrollbar-color: auto) {
    .software-panel-list {
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
}

.software-panel-list::-webkit-scrollbar {
    width: 6px;
}

.software-panel-list::-webkit-scrollbar-track {
    background: transparent;
}

.software-panel-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.software-panel-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.software-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    color: rgba(244, 244, 246, 0.65);
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    border: none;
    text-align: left;
    flex-shrink: 0;
    position: relative;
}

.software-panel-item:hover {
    background: rgba(244, 244, 246, 0.08);
    color: #f4f4f6;
}

.software-panel-item.selected,
.software-panel-item.is-active {
    background: rgba(244, 244, 246, 0.15);
    color: #f4f4f6;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.software-panel-item.selected .sw-name,
.software-panel-item.is-active .sw-name,
.software-panel-item:hover .sw-name {
    color: #f4f4f6;
}

.software-panel-item-all {
    margin-bottom: 1px;
    font-weight: 600;
}

.software-panel-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 8px;
    flex-shrink: 0;
}

.software-panel-item img,
.software-panel-item iconify-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    flex-grow: 0;
    display: inline-block;
    overflow: hidden;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.software-panel-item iconify-icon {
    background: #1a1a1c;
    color: var(--sw-heading);
    padding: 4px;
    line-height: 0;
    opacity: 1;
}

.software-panel-item.selected img,
.software-panel-item.is-active img {
    opacity: 0;
}

.software-panel-item:hover iconify-icon {
    background: #252528;
    color: #ececed;
}

.software-panel-item.selected iconify-icon,
.software-panel-item.is-active iconify-icon {
    background: var(--sw-accent);
    border: none;
    color: #ececed;
    opacity: 1;
}

.software-panel-item.selected::before,
.software-panel-item.is-active::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--sw-accent);
    border: none;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.software-panel-item.selected::after,
.software-panel-item.is-active::after {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ececed;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.software-panel-item.selected iconify-icon svg,
.software-panel-item.is-active iconify-icon svg {
    fill: currentColor;
    color: #ececed;
    opacity: 1;
}

.software-panel-item .sw-name {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.005em;
}

.software-panel-item .sw-check {
    display: none;
}

.software-panel-empty {
    padding: 20px 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-style: italic;
}

/* Mobile: anchor panel above the footer bar */
@media (max-width: 768px) {
    .software-panel {
        position: fixed;
        bottom: 90px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
        min-width: 0;
        transform-origin: bottom right;
    }

    .software-panel::after {
        right: 20px;
    }


}

.software-selector-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 500px;
    background: rgba(10, 10, 12, 0.75);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.software-selector-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* Mobile Bottom Sheet & Refined UI */
@media (max-width: 768px) {
    .software-selector-modal {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: none;
        border-radius: 24px 24px 0 0;
        padding: 25px 20px 40px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .software-selector-modal.active {
        transform: translateY(0);
    }

    /* Add a "handle" icon at the top of bottom sheet */
    .software-selector-modal::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }

    /* ONLY SHOW ICONS IN MOBILE VIEW (Compact View) */
    .software-selector-modal .software-grid {
        grid-template-columns: repeat(auto-fill, 54px);
        justify-content: center;
        gap: 12px;
        max-height: 50vh;
        padding: 15px;
    }

    .software-selector-modal .software-item {
        width: 54px;
        height: 54px;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        justify-content: center;
        flex-direction: row;
    }

    .software-selector-modal .software-item img,
    .software-selector-modal .software-item iconify-icon {
        width: 28px;
        height: 28px;
        margin: 0;
    }

    .software-selector-modal .software-item .sw-name {
        display: none;
    }

    .software-selector-modal .software-item .sw-check {
        top: -2px;
        right: -2px;
        width: 16px;
        height: 16px;
        background: var(--sw-bg);
        border-radius: 50%;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 28px;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--sw-heading);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}

.software-item {
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    justify-content: flex-start;
}

.software-item:hover {
    background: #222;
    border-color: rgba(255, 255, 255, 0.2);
}

.software-item.selected {
    border-color: #1982c4;
    background: rgba(25, 130, 196, 0.1);
}

.software-item img,
.software-item iconify-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.sw-name {
    font-size: 14px;
    font-weight: 600;
    color: #eee;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-check {
    position: absolute;
    top: 5px;
    right: 8px;
    color: #1982c4;
    font-size: 14px;
    opacity: 0;
}

.software-item.selected .sw-check {
    opacity: 1;
}

.modal-footer {
    margin-top: 30px;
    text-align: center;
}

.apply-filters-btn {
    background: #1982c4;
    color: var(--sw-heading);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.apply-filters-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(25, 130, 196, 0.4);
}

@media (max-width: 768px) {
    .software-selector-modal .software-grid {
        grid-template-columns: repeat(auto-fill, 54px);
        justify-content: center;
        gap: 12px;
        max-height: 50vh;
        padding: 15px;
    }

    .software-selector-modal .software-item {
        width: 54px;
        height: 54px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .software-selector-modal .software-item img,
    .software-selector-modal .software-item iconify-icon {
        width: 28px;
        height: 28px;
        margin: 0;
    }

    .software-selector-modal .software-item .sw-name {
        display: none;
    }
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 900px) {
    .hero-featured-viewport {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        border-radius: 16px;
    }
}

/* --- TEMPLATE CARD STYLES --- */
.card-market-content,
.card-blog-content,
.card-course-content {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--sw-bg-card);
}

.explorer-card .card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.explorer-card.type-market .card-img-wrapper {
    aspect-ratio: 16/9;
}

.explorer-card .card-img-wrapper img,
.explorer-card .card-img-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: inherit;
}

.explorer-card:hover .card-img-wrapper img,
.explorer-card:hover .card-img-wrapper video {
    transform: scale(1.05);
}

/* MARKET */
.card-market-title {
    font-size: 12px;
    font-weight: 700;
    color: #bebebe;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-market-cat {
    color: #888;
    font-weight: 400;
}

.card-market-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #aaa;
    flex-wrap: wrap;
    row-gap: 5px;
}

.card-market-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-market-meta i {
    font-size: 12px;
}

.card-market-rating {
    background: #1982c4;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--sw-heading);
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 700;
}

.card-market-free-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgb(7 39 19);
    color: #22c55e;
    border: 1px solid #22c55e;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 10;
}

.card-new-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgb(127 49 49 / 71%);
    color: var(--sw-heading);
    border: 1px solid rgb(255 0 0);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 12;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.explorer-card.is-new .card-actions-row {
    top: 42px;
}

.explorer-card.is-new .card-course-level-badge {
    top: 34px;
}

.card-market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-market-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ccc;
}

.card-market-author img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.card-market-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--sw-heading);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-market-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    background: #1982c4;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s;
    z-index: 20;
    border: none;
    cursor: pointer;
}

.explorer-card:hover .card-market-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* BLOG */
.card-blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #aaa;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-blog-title {
    font-size: 10px;
    font-weight: 700;
    color: #bebebe;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #ccc;
}

.card-blog-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.pro-badge {
    background: #1982c4;
    color: var(--sw-heading);
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 700;
}

.card-blog-stats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    flex-wrap: wrap;
}

.card-blog-stats div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-blog-stats i {
    font-size: 13px;
}

/* COURSE */
.card-course-chip-row {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    flex-wrap: wrap;
}

.card-course-chip-row .card-course-domain {
    position: static;
    top: auto;
    left: auto;
}

.card-course-type-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sw-heading);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.card-course-domain {
    position: absolute;
    top: 10px;
    left: 10px;
    border: 1px solid #ddd;
    color: var(--sw-heading);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-course-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sw-heading);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    z-index: 10;
}

.card-course-softwares {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: -5px;
    z-index: 10;
    background: rgb(19 19 19 / 80%);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-course-softwares iconify-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sw-bg-elevated);
    color: var(--sw-heading);
    padding: 2px;
    border: 1.5px solid #131313;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-course-title {
    font-size: 10px;
    font-weight: 700;
    color: #bebebe;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-course-footer {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #888;
    gap: 8px;
}

.card-course-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-course-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.card-course-author-name {
    color: var(--sw-heading);
    font-weight: 500;
    opacity: 0.8;
}

.card-course-footer .dot {
    width: 3px;
    height: 3px;
    background: #555;
    border-radius: 50%;
}

.card-course-duration {
    color: var(--text-muted);
}

.card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;

}

/* Locked Card Styles */
.explorer-card.is-locked .aspect-square img,
.explorer-card.is-locked .card-img-wrapper img {
    filter: blur(15px) brightness(0.6);
    pointer-events: none;
}

.explorer-card.is-locked:hover .aspect-square img {
    filter: blur(20px) brightness(0.4);
}

.card-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.explorer-card.is-locked:hover .card-lock-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.lock-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--sw-heading);
    font-size: 1.2rem;
}

.lock-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sw-heading);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lock-login-btn {
    background: var(--sw-accent, var(--sw-accent));
    color: var(--sw-heading);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lock-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--sw-accent-rgb, 49, 168, 255), 0.3);
    background: var(--sw-accent-hover, #5fc0ff);
}

/* =========================================
   NEW BLOG CARD STYLING (FROM TEST.HTML)
   ========================================= */
.blog-card {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border: none;
    /* Remove redundant inner border to completely resolve the double border bug */
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.75);
    border-radius: 12px;
}

.blog-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    transition: 0.4s ease;
}

.blog-card:hover::before,
.explorer-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.blog-content {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    /* Hidden by default - reveals beautifully on hover */
    transform: translateY(12px);
    /* Subtle premium slide-up transition */
    width: calc(100% - 40px);
}

.blog-category {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--sw-heading);
    transition: 0.4s ease;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 99px;
    text-decoration: none;
    color: var(--sw-heading);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-card:hover img,
.explorer-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.45);
    /* Zoom and darken background on hover to focus text overlay */
}

.blog-card:hover .blog-content,
.explorer-card:hover .blog-content {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* --- SW ASSET REQUEST FORM --- */
.sw-asset-request-container {
    max-width: 696px;
    margin: 129px auto;
    padding: 0 15px;
    width: 100%;
}

.sw-request-form-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), rgba(10, 10, 12, 0.7);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.sw-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.sw-form-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sw-heading);
    margin: 0 0 6px;
    background: linear-gradient(90deg, var(--sw-heading), rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.sw-form-header p {
    font-size: 12px;
    color: #8a8a93;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.sw-form-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Left Column: File Upload Area */
.sw-upload-column {
    display: flex;
    flex-direction: column;
}

.sw-upload-zone {
    flex: 1;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.sw-upload-zone:hover,
.sw-upload-zone.dragover {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.02);
    box-shadow: 0 0 30px rgba(2, 132, 199, 0.1);
}

.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    pointer-events: none;
}

.upload-icon {
    font-size: 36px;
    color: #8a8a93;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sw-upload-zone:hover .upload-icon {
    color: #0284c7;
    transform: translateY(-2px);
}

.upload-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-heading);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 10px;
    color: #52525b;
}

/* Preview Screen */
.upload-preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.upload-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-preview-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #ef4444;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
    z-index: 5;
}

.remove-preview-btn:hover {
    transform: scale(1.1);
}

/* Right Column: Inputs */
.sw-inputs-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.sw-input-group input,
.sw-input-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--sw-heading);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
}

.sw-input-group input:focus,
.sw-input-group textarea:focus {
    border-color: #0284c7;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
    outline: none;
}

.sw-input-group textarea {
    resize: none;
}

.sw-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.sw-submit-request-btn {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: var(--sw-heading);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-submit-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.35);
}

.sw-submit-request-btn:active {
    transform: translateY(0);
}

.sw-submit-request-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-send-icon {
    font-size: 18px;
}

/* Success Overlay */
.sw-request-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-content {
    text-align: center;
    max-width: 450px;
    padding: 20px;
}

.success-icon-wrapper {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 24px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-content h3 {
    font-size: 24px;
    color: var(--sw-heading);
    margin: 0 0 12px;
    font-weight: 700;
}

.success-content p {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 30px;
}

.close-success-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--sw-heading);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-success-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Form */
@media (max-width: 768px) {
    .sw-form-grid {
        grid-template-columns: 1fr;
    }

    .sw-upload-zone {
        min-height: 200px;
    }

    .sw-request-form-card {
        padding: 25px;
    }
}

/* --- PATREON MODAL STYLES REMOVED --- */

.sw-highlight-free {
    color: #ff5a60;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 90, 96, 0.25);
    background: rgba(255, 90, 96, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 90, 96, 0.18);
    margin: 0 2px;
}

/* --- AGREEMENT CHECKBOX STYLES --- */
.sw-agreement-group {
    margin-top: 15px;
    margin-bottom: 12px;
    text-align: left;
}

.sw-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 11px;
    color: #8a8a93;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.4;
    gap: 10px;
}

.sw-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.sw-checkmark {
    position: relative;
    height: 14px;
    width: 14px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-checkbox-container:hover input~.sw-checkmark {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.04);
}

.sw-checkbox-container input:checked~.sw-checkmark {
    background-color: #3b82f6;
    /* Modern Blue Accent */
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.sw-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.sw-checkbox-container input:checked~.sw-checkmark:after {
    display: block;
}

.sw-checkbox-container .sw-checkmark:after {
    left: 4px;
    top: 0px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sw-agreement-text {
    transition: color 0.2s ease;
}

.sw-checkbox-container input:checked~.sw-agreement-text {
    color: var(--sw-heading);
}

.sw-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    text-align: left;
    line-height: 1.4;
}

/* --- REDUCED MOTION: kill bouncy glass animations for accessibility --- */
@media (prefers-reduced-motion: reduce) {

    .explorer-card .license-chip,
    .explorer-card .action-btn,
    .card-stats-wrapper .stats-trigger,
    .card-stats-wrapper .stats-popup,
    .card-stats-wrapper .stat-item,
    .explorer-card .card-actions-top-right,
    .explorer-footer .software-trigger,
    .software-panel-container .software-panel,
    .software-panel .software-panel-item,
    .software-panel .software-panel-item .sw-check {
        transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        transform: none;
    }

    .card-stats-wrapper.active .stat-item {
        transition-delay: 0s;
    }
}

/* ===========================================================
   SIDE PANEL (tablet/desktop only — replaces top nav)
   =========================================================== */

/* --- DOMAINS DROPDOWN PANEL & COMMON FOOTER BUTTONS --- */

/* Align and size all footer action buttons (No 2 template) */
.layout-toggle {
    height: 40px;
}

.layout-toggle.active {
    width: 40px;
}

.layout-toggles-wrapper:hover .layout-toggle,
.layout-toggles-wrapper.open .layout-toggle {
    width: 40px;
}

.explorer-menu-toggle,
.software-trigger,
.go-to-top-btn,
.layout-toggle {
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s ease;
    padding: 0;
    box-sizing: border-box;
}

/* Icons inside the action buttons */
.explorer-menu-toggle iconify-icon,
.software-trigger iconify-icon,
.go-to-top-btn svg,
.layout-toggle svg {
    color: var(--sw-heading);
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

/* Hover styles for all buttons */
.explorer-menu-toggle:hover,
.software-trigger:hover,
.go-to-top-btn:hover,
.layout-toggle:hover {
    background: var(--sw-bg);
    color: var(--sw-heading);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.explorer-menu-toggle:hover iconify-icon,
.software-trigger:hover iconify-icon,
.go-to-top-btn:hover svg,
.layout-toggle:hover svg {
    color: var(--sw-heading);
}

/* Active styles for all buttons */
.explorer-menu-toggle[aria-expanded="true"],
.software-trigger[aria-expanded="true"],
.layout-toggle.active {
    background: var(--sw-bg);
    color: var(--sw-heading);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.explorer-menu-toggle[aria-expanded="true"]:hover,
.software-trigger[aria-expanded="true"]:hover,
.layout-toggle.active:hover {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.explorer-menu-toggle[aria-expanded="true"] iconify-icon,
.software-trigger[aria-expanded="true"] iconify-icon,
.layout-toggle.active svg {
    color: var(--sw-heading);
}

/* Relative positioning containers for panels alignment */
/* Backdrop overlay for domains/software panels */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 140;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

body.panel-overlay::before {
    opacity: 1;
}

.domains-panel-container,
.software-panel-container {
    position: relative;
    display: inline-flex;
}

.software-panel-container {
    margin-left: 10px;
}

/* --- DOMAINS FLOATING DROPDOWN PANEL --- */
.domains-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 32px);
    max-height: min(420px, 70vh);
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.domains-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Arrow pointing down to the trigger button */
.domains-panel::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #0f0f12;
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.domains-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 14px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.domains-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sw-heading);
}

.domains-panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: var(--sw-bg-elevated);
    color: var(--sw-heading);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.domains-panel-clear {
    background: var(--sw-bg-elevated);
    border: 2px solid var(--sw-heading);
    color: var(--sw-heading);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.domains-panel-clear:hover {
    color: var(--sw-heading);
    background: #0a0a0a;
    border-color: var(--sw-heading);
}

.domains-panel-clear:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.domains-panel-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 0;
}

.domains-panel-list::-webkit-scrollbar {
    width: 4px;
}

.domains-panel-list::-webkit-scrollbar-track {
    background: transparent;
}

.domains-panel-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.domains-panel-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Archive search wrapper and inputs */
.domains-panel-search-wrapper {
    padding: 6px 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.domains-panel-search-wrapper .archive-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.domains-panel-search-wrapper .archive-search:focus-within {
    background: var(--sw-bg-card);
    border-color: rgba(255, 255, 255, 0.2);
}

.domains-panel-search-wrapper .archive-search-icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.domains-panel-search-wrapper .archive-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--sw-heading);
    font-size: 12px;
    font-family: inherit;
    padding: 0;
}

.domains-panel-search-wrapper .archive-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Breadcrumb (zoom navigation) */
.explorer-sidebar-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 6px 12px 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
    min-height: 28px;
}

.breadcrumb-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
}

.breadcrumb-item.is-current {
    color: var(--sw-heading);
    font-weight: 600;
    cursor: default;
}

.breadcrumb-item.is-current:hover {
    background: transparent;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    -webkit-user-select: none;
    user-select: none;
    flex-shrink: 0;
}

/* Tree Nodes list styling */
.explorer-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Item (shared) */

.explorer-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    color: rgba(244, 244, 246, 0.65);
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    border: none;
    text-align: left;
    flex-shrink: 0;
    position: relative;
}

.explorer-sidebar-item:hover {
    background: rgba(244, 244, 246, 0.08);
    color: #f4f4f6;
}

.explorer-sidebar-item.active,
.explorer-sidebar-item.is-active {
    background: rgba(244, 244, 246, 0.15);
    color: #f4f4f6;
    font-weight: 600;
}

.explorer-sidebar-item img,
.explorer-sidebar-item iconify-icon,
.sidebar-domain-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-block;
    overflow: hidden;
}

.explorer-sidebar-item iconify-icon {
    padding: 0;
    line-height: 0;
}

.explorer-sidebar-item:hover iconify-icon {
    color: #ececed;
}

.explorer-sidebar-item.active iconify-icon,
.explorer-sidebar-item.is-active iconify-icon {
    background: transparent;
    color: #ececed;
}

.explorer-sidebar-item .sw-name {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: inherit;
}

.explorer-sidebar-item.active .sw-name,
.explorer-sidebar-item.is-active .sw-name,
.explorer-sidebar-item:hover .sw-name {
    color: #f4f4f6;
}

/* "All" item in domain list — root reset */
.explorer-sidebar-domain-all.is-active {
    background: rgba(244, 244, 246, 0.15);
    color: #f4f4f6;
}

.explorer-sidebar-domain-all.is-active iconify-icon {
    color: #ececed;
}

/* Tree toggle (expand/collapse arrow) */
.tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}

.tree-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.tree-toggle::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.18s ease;
    transform-origin: 25% 50%;
}

.tree-node.has-children.is-expanded>.tree-toggle::before {
    transform: rotate(90deg);
}

.tree-node:not(.has-children)>.tree-toggle {
    visibility: hidden;
    pointer-events: none;
}

/* Tree connector lines removed — no vertical bar / horizontal branch on children. */

.tree-node {
    max-height: 40px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.22s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.18s ease,
                padding-top 0.22s cubic-bezier(0.25, 1, 0.5, 1),
                padding-bottom 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hide items outside the current scope smoothly */
.tree-node.is-hidden {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Hierarchy indentation */
.explorer-sidebar-domain {
    position: relative;
    padding-left: 14px;
}

.explorer-sidebar-domain.depth-1 {
    padding-left: 38px;
}

.explorer-sidebar-domain.depth-1::before {
    content: "";
    position: absolute;
    left: 19px;
    top: -12px;
    height: calc(100% + 12px - 20px);
    width: 14px;
    border-left: 1px dashed rgba(255, 255, 255, 0.18);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.explorer-sidebar-domain.depth-2 {
    padding-left: 58px;
}

/* Grandparent line */
.explorer-sidebar-domain.depth-2::before {
    content: "";
    position: absolute;
    left: 19px;
    top: -12px;
    height: calc(100% + 12px);
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

/* Parent-to-child line */
.explorer-sidebar-domain.depth-2::after {
    content: "";
    position: absolute;
    left: 39px;
    top: -12px;
    height: calc(100% + 12px - 20px);
    width: 14px;
    border-left: 1px dashed rgba(255, 255, 255, 0.18);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.explorer-sidebar-domain.active.depth-1::before,
.explorer-sidebar-domain.is-active.depth-1::before,
.explorer-sidebar-domain.active.depth-2::after,
.explorer-sidebar-domain.is-active.depth-2::after,
.explorer-sidebar-domain:hover.depth-1::before,
.explorer-sidebar-domain:hover.depth-2::after {
    border-color: rgba(255, 255, 255, 0.35);
}

.explorer-sidebar-domain.active.depth-2::before,
.explorer-sidebar-domain.is-active.depth-2::before,
.explorer-sidebar-domain:hover.depth-2::before {
    border-color: rgba(255, 255, 255, 0.35);
}

.explorer-sidebar-empty {
    padding: 12px 14px;
    text-align: left;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-style: italic;
}

/* Coming Soon treatment for empty domains */
.explorer-sidebar-item.is-coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.explorer-sidebar-item:hover .tree-toggle {
    color: #000000;
}

.explorer-sidebar-item.active .tree-toggle,
.explorer-sidebar-item.is-active .tree-toggle {
    color: #000000;
}

/* --- MOBILE FLOATING RESPONSIVE PANELS --- */
@media (max-width: 768px) {
    .domains-panel {
        position: fixed;
        bottom: 90px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
        min-width: 0;
        transform-origin: bottom right;
    }

    .domains-panel::after {
        display: none;
    }
}

/* ==========================================================================
   Creators Listing Page (page-creator.php)
   ========================================================================== */
.sw-creator-page {
    padding: 6.5rem 0 4rem 0;
    min-height: 80vh;
    color: var(--sw-heading);
    font-family: var(--sw-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    position: relative;
    overflow: hidden;
}

.sw-creator-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49, 168, 255, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.sw-creator-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sw-creator-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.sw-creator-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--sw-heading);
}

.sw-creator-subtitle {
    color: #a3a3a3;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

.sw-creator-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.sw-creator-search-box {
    position: relative;
    flex: 1;
}

.sw-creator-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.sw-creator-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    display: none;
    align-items: center;
}

.sw-creator-search-clear:hover {
    color: var(--sw-heading);
}

#swCreatorSearchInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 44px 14px 48px;
    color: var(--sw-heading);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

#swCreatorSearchInput:focus {
    outline: none;
    border-color: var(--sw-accent, var(--sw-accent));
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(49, 168, 255, 0.15);
}

.sw-creator-view-toggle {
    display: flex;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 12px;
}

.sw-view-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #71717a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sw-view-btn:hover {
    color: var(--sw-heading);
}

.sw-view-btn.active {
    background: var(--sw-accent, var(--sw-accent));
    color: var(--sw-heading);
    box-shadow: 0 4px 12px rgba(49, 168, 255, 0.2);
}

.sw-creator-grid {
    transition: opacity 0.15s ease;
}

.sw-creator-grid.switching {
    opacity: 0;
}

@keyframes swCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sw-blog-card {
    animation: swCardFadeIn 0.35s ease forwards;
}

.sw-creator-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sw-creator-grid.view-grid .sw-creator-card,
.sw-home-carousel .sw-creator-card {
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    position: relative;
    overflow: visible;
    height: 100%;
    transition: all 0.3s ease;
}

.sw-creator-grid.view-grid .sw-creator-card:hover,
.sw-home-carousel .sw-creator-card:hover {
    transform: translateY(-4px);
    border-color: rgba(49, 168, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.sw-creator-grid.view-grid .sw-blog-card-img-wrap,
.sw-home-carousel .sw-creator-card .sw-blog-card-img-wrap {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: var(--sw-bg-elevated);
    border-radius: 16px 16px 0 0;
}

.sw-creator-grid.view-grid .sw-blog-card-img-wrap::after,
.sw-home-carousel .sw-creator-card .sw-blog-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(10, 10, 13, 0.85) 0%, rgba(10, 10, 13, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.sw-creator-grid.view-grid .sw-creator-info-row,
.sw-home-carousel .sw-creator-card .sw-creator-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: -30px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.sw-creator-grid.view-grid .sw-creator-avatar,
.sw-home-carousel .sw-creator-card .sw-creator-avatar {
    width: 60px;
    height: 60px;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.sw-creator-grid.view-grid .sw-creator-avatar img,
.sw-home-carousel .sw-creator-card .sw-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0a0a0d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: var(--sw-bg-card);
    display: block;
}

.sw-creator-avatar .sw-verified-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    z-index: 15;
    background: #0a0a0d;
    border-radius: 50%;
    padding: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-accent, var(--sw-accent));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.sw-creator-avatar .sw-verified-badge iconify-icon {
    font-size: 0.9rem;
}

.sw-creator-grid.view-grid .sw-creator-details-col,
.sw-home-carousel .sw-creator-card .sw-creator-details-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sw-creator-grid.view-grid .sw-creator-name,
.sw-home-carousel .sw-creator-card .sw-creator-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-creator-grid.view-grid .sw-creator-name a,
.sw-home-carousel .sw-creator-card .sw-creator-name a {
    color: var(--sw-heading);
    text-decoration: none;
}

.sw-creator-grid.view-grid .sw-creator-name a:hover,
.sw-home-carousel .sw-creator-card .sw-creator-name a:hover {
    color: var(--sw-accent, var(--sw-accent));
}

.sw-creator-grid.view-grid .sw-creator-designation,
.sw-home-carousel .sw-creator-card .sw-creator-designation {
    font-size: 0.75rem;
    color: #71717a;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sw-creator-grid.view-grid .sw-creator-card-footer,
.sw-home-carousel .sw-creator-card .sw-creator-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 1.5rem 16px 16px 16px;
}

.sw-creator-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-creator-grid.view-list .sw-creator-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.sw-creator-grid.view-list .sw-creator-card:hover {
    transform: translateX(4px);
    border-color: rgba(49, 168, 255, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sw-creator-grid.view-list .sw-blog-card-img-wrap {
    display: none;
}

.sw-creator-grid.view-list .sw-creator-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sw-creator-grid.view-list .sw-creator-avatar {
    width: 48px;
    height: 48px;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.sw-creator-grid.view-list .sw-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #0a0a0d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: var(--sw-bg-card);
    display: block;
}

.sw-creator-grid.view-list .sw-creator-details-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sw-creator-grid.view-list .sw-creator-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.sw-creator-grid.view-list .sw-creator-name a {
    color: var(--sw-heading);
    text-decoration: none;
}

.sw-creator-grid.view-list .sw-creator-designation {
    font-size: 0.8rem;
    color: #71717a;
    margin-top: 2px;
}

.sw-creator-grid.view-list .sw-creator-card-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.sw-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sw-creator-card:hover .sw-blog-card-img {
    transform: scale(1.05);
}

.sw-creator-social-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sw-creator-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a3a3a3;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sw-creator-social-icon:hover {
    background: var(--sw-accent, var(--sw-accent));
    color: var(--sw-heading);
    border-color: var(--sw-accent, var(--sw-accent));
    transform: translateY(-2px);
}

.sw-creator-view-btn {
    background: var(--sw-accent, var(--sw-accent));
    color: var(--sw-heading);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(49, 168, 255, 0.15);
}

.sw-creator-view-btn:hover {
    background: var(--sw-accent-hover, #50b7ff);
    box-shadow: 0 4px 16px rgba(49, 168, 255, 0.3);
    transform: translateY(-1px);
}

.sw-creator-view-btn iconify-icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.sw-creator-view-btn:hover iconify-icon {
    transform: translateX(2px);
}

.sw-creator-loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.sw-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--sw-accent, var(--sw-accent));
    border-radius: 50%;
    animation: swSpin 0.8s linear infinite;
}

@keyframes swSpin {
    to {
        transform: rotate(360deg);
    }
}

.sw-creator-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
    color: #71717a;
    font-size: 1.05rem;
}

@media (max-width: 1024px) {
    .sw-creator-grid.view-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sw-creator-grid.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-creator-controls {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .sw-creator-grid.view-list .sw-creator-card {
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .sw-creator-grid.view-list .sw-blog-card-img-wrap {
        display: none;
    }

    .sw-creator-grid.view-list .sw-creator-info-row {
        margin-top: 0;
        padding: 0;
        flex: 1 1 200px;
    }

    .sw-creator-grid.view-list .sw-creator-avatar {
        width: 48px;
        height: 48px;
    }

    .sw-creator-grid.view-list .sw-creator-avatar img {
        border-width: 2px;
    }

    .sw-creator-grid.view-list .sw-creator-details-col {
        padding-top: 0;
    }

    .sw-creator-grid.view-list .sw-creator-card-footer {
        padding: 0;
        margin-top: 0;
        gap: 1rem;
        flex: 1 1 auto;
        justify-content: space-between;
    }
}

@media (max-width: 540px) {
    .sw-creator-grid.view-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Blog Listing Page (page-blog.php)
   ========================================================================== */
.sw-blog-page {
    padding: 6.5rem 0 4rem 0;
    min-height: 80vh;
    color: var(--sw-heading);
    font-family: var(--sw-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    position: relative;
    overflow: hidden;
}

.sw-blog-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49, 168, 255, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.sw-blog-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sw-blog-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.sw-blog-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--sw-heading);
}

.sw-blog-subtitle {
    color: #a3a3a3;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

.sw-blog-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.sw-blog-search-box {
    position: relative;
    flex: 1;
}

.sw-blog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.sw-blog-search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    display: none;
    align-items: center;
}

.sw-blog-search-clear:hover {
    color: var(--sw-heading);
}

#swBlogSearchInput {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 44px 14px 48px;
    color: var(--sw-heading);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
}

#swBlogSearchInput:focus {
    outline: none;
    border-color: var(--sw-accent, var(--sw-accent));
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(49, 168, 255, 0.15);
}

.sw-blog-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 12px;
}

.sw-blog-grid {
    transition: opacity 0.15s ease;
}

.sw-blog-grid.switching {
    opacity: 0;
}

.sw-blog-card {
    animation: swCardFadeIn 0.35s ease forwards;
}

.sw-blog-grid.view-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.sw-blog-grid.view-grid .sw-blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.sw-blog-grid.view-grid .sw-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(49, 168, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.sw-blog-grid.view-grid .sw-blog-card-img-wrap {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: var(--sw-bg-elevated);
}

.sw-blog-grid.view-grid .sw-blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sw-blog-grid.view-grid .sw-blog-card-link {
    margin-top: auto;
}

.sw-blog-grid.view-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sw-blog-grid.view-list .sw-blog-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.sw-blog-grid.view-list .sw-blog-card:hover {
    transform: translateX(4px);
    border-color: rgba(49, 168, 255, 0.2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sw-blog-grid.view-list .sw-blog-card-img-wrap {
    width: 170px;
    height: 105px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--sw-bg-elevated);
}

.sw-blog-grid.view-list .sw-blog-card-body {
    padding: 0;
    flex: 1;
}

.sw-blog-grid.view-list .sw-blog-card-meta {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}

.sw-blog-grid.view-list .sw-blog-card-body h2 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.sw-blog-grid.view-list .sw-blog-card-excerpt {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.sw-blog-grid.view-list .sw-blog-card-link {
    font-size: 0.78rem;
}

.sw-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sw-blog-card:hover .sw-blog-card-img {
    transform: scale(1.05);
}

.sw-blog-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sw-blog-card-meta {
    font-size: 0.76rem;
    color: #71717a;
    margin-bottom: 0.6rem;
    display: flex;
    gap: 12px;
}

.sw-blog-card-meta a {
    color: #71717a;
    text-decoration: none;
}

.sw-blog-card-meta a:hover {
    color: var(--sw-heading);
}

.sw-blog-card-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    line-height: 1.35;
}

.sw-blog-card-body h2 a {
    color: var(--sw-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sw-blog-card:hover .sw-blog-card-body h2 a {
    color: var(--sw-accent, var(--sw-accent));
}

.sw-blog-card-excerpt {
    font-size: 0.85rem;
    color: #a3a3a3;
    line-height: 1.55;
    margin: 0 0 1.1rem 0;
}

.sw-blog-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sw-accent, var(--sw-accent));
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.sw-blog-card-link:hover {
    color: var(--sw-accent-hover, #50b7ff);
}

.sw-blog-card-link iconify-icon {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.sw-blog-card-link:hover iconify-icon {
    transform: translateX(2px);
}

.sw-blog-loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.sw-blog-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
    color: #71717a;
    font-size: 1.05rem;
}

@media (max-width: 1024px) {
    .sw-blog-grid.view-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sw-blog-grid.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-blog-controls {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .sw-blog-grid.view-list .sw-blog-card {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sw-blog-grid.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Creator Profile Page (single-creator.php)
   ========================================================================== */
.creator-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 60px 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.creator-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
}

.creator-hero.no-cover {
    min-height: 200px;
    background: linear-gradient(135deg, #121214 0%, #1e1e24 100%);
    padding: 120px 0 40px 0;
}

.creator-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.creator-hero-content-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: 100%;
}

.creator-hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.creator-role-tag {
    background: rgba(49, 168, 255, 0.15);
    color: var(--sw-accent);
    border: 1px solid rgba(49, 168, 255, 0.3);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creator-exp-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creator-exp-badge.exp-beginner {
    background: rgba(249, 115, 22, 0.15);
    color: #ff9d5c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.creator-exp-badge.exp-intermediate {
    background: rgba(59, 130, 246, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.creator-exp-badge.exp-pro {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.creator-name {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--sw-heading);
    margin: 0 0 10px 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.creator-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.creator-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 15px;
    align-items: start;
    margin-bottom: 60px;
}

.creator-sidebar {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.creator-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.creator-avatar-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    padding: 2.5px;
    background: #0a0a0a;
}

.creator-avatar-img-inner img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-verified-badge {
    position: absolute;
    top: 12px;
    right: -2px;
    background: var(--sw-accent);
    color: var(--sw-heading);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid #0a0a0a;
    font-size: 0.8rem;
    z-index: 5;
}

.creator-sidebar-section {
    width: 100%;
    margin-bottom: 24px;
}

.creator-sidebar-section:last-child {
    margin-bottom: 0;
}

.creator-sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.creator-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creator-social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.creator-social-btn.website {
    background: rgba(255, 255, 255, 0.03);
    color: var(--sw-heading);
}

.creator-social-btn.website:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.creator-social-btn.artstation {
    background: rgba(19, 143, 218, 0.1);
    color: #138fda;
    border-color: rgba(19, 143, 218, 0.2);
}

.creator-social-btn.artstation:hover {
    background: rgba(19, 143, 218, 0.18);
    transform: translateY(-2px);
}

.creator-social-btn.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.2);
}

.creator-social-btn.linkedin:hover {
    background: rgba(10, 102, 194, 0.18);
    transform: translateY(-2px);
}

.creator-social-btn.twitter {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
}

.creator-social-btn.twitter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
    transform: translateY(-2px);
}

.creator-social-btn.behance {
    background: rgba(23, 105, 255, 0.1);
    color: #1769ff;
    border-color: rgba(23, 105, 255, 0.2);
}

.creator-social-btn.behance:hover {
    background: rgba(23, 105, 255, 0.18);
    transform: translateY(-2px);
}

.creator-social-btn.sketchfab {
    background: rgba(28, 170, 217, 0.1);
    color: #1caad9;
    border-color: rgba(28, 170, 217, 0.2);
}

.creator-social-btn.sketchfab:hover {
    background: rgba(28, 170, 217, 0.18);
    transform: translateY(-2px);
}

.creator-social-btn.github {
    background: rgba(255, 255, 255, 0.03);
    color: #e6edf3;
    border-color: rgba(255, 255, 255, 0.08);
}

.creator-social-btn.github:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
    transform: translateY(-2px);
}

.creator-social-btn.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border-color: rgba(255, 0, 0, 0.2);
}

.creator-social-btn.youtube:hover {
    background: rgba(255, 0, 0, 0.18);
    transform: translateY(-2px);
}

.creator-social-btn iconify-icon {
    font-size: 1.1rem;
}

.creator-main-card {
    padding: 40px;
}

.creator-bio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sw-heading);
    margin-top: 0;
    margin-bottom: 20px;
}

.creator-bio-content {
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.creator-bio-content p {
    margin-bottom: 20px;
}

.creator-bio-content p:last-child {
    margin-bottom: 0;
}

.creator-bio-content pre {
    background: var(--sw-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.creator-bio-content pre::-webkit-scrollbar {
    height: 4px;
}

.creator-bio-content pre::-webkit-scrollbar-track {
    background: #121212;
}

.creator-bio-content pre::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 2px;
}

.creator-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.creator-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.creator-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.creator-stat-value {
    font-size: .7rem;
    color: #b1b1b1;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .creator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .creator-sidebar {
        padding: 24px;
    }

    .creator-main-card {
        padding: 24px;
    }

    .creator-hero-content-wrap {
        max-width: 90%;
    }

    .creator-name {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .creator-hero {
        padding: 80px 0 40px 0;
        min-height: 0;
    }

    .creator-hero.no-cover {
        padding: 80px 0 30px 0;
        min-height: 0;
    }

    .creator-hero-content-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .creator-avatar-wrap {
        width: 100px;
        height: 100px;
    }

    .avatar-verified-badge {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .creator-name {
        font-size: 1.8rem;
    }

    .creator-tagline {
        font-size: 1rem;
    }

    .creator-hero-roles {
        justify-content: center;
    }

    .creator-main-card {
        padding: 20px;
    }

    .creator-grid {
        margin-bottom: 40px;
    }
}

/* ==========================================================================
   Creator Dashboard (template-creator-dashboard.php)
   ========================================================================== */
.sw-wireframe-dashboard {
    font-family: 'Inter', sans-serif;
    background: var(--sw-bg);
    color: var(--sw-text);
    padding: 40px 0 80px 0;
}

.sw-wireframe-dashboard h1,
.sw-wireframe-dashboard h2,
.sw-wireframe-dashboard h3,
.sw-wireframe-dashboard h4 {
    font-family: 'Outfit', sans-serif;
}

.sw-wireframe-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.sw-wf-banner {
    position: relative;
    width: 100%;
    height: 260px;
    background-color: var(--sw-bg-elevated);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    border: 1px solid var(--sw-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 90px;
}

.sw-wf-banner.is-empty {
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 124, 216, 0.18), transparent 32%),
        radial-gradient(circle at 78% 22%, rgba(110, 168, 255, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(26, 26, 33, 0.96), rgba(18, 18, 24, 0.96));
}

.sw-wf-banner.is-empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 40%),
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.025) 0,
            rgba(255,255,255,0.025) 10px,
            transparent 10px,
            transparent 20px
        );
    pointer-events: none;
}

.sw-wf-experience-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 30;
    width: 200px;
}

.sw-wf-experience-overlay .sw-experience-trigger {
    background: var(--sw-bg-elevated);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--sw-border);
    border-radius: 30px;
    padding: 8px 18px;
    height: 38px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sw-wf-experience-overlay .sw-experience-trigger:hover {
    background: var(--sw-bg-hover);
    border-color: var(--sw-border-light);
}

.sw-wf-experience-overlay .sw-experience-trigger.active {
    border-color: var(--sw-accent);
    box-shadow: 0 0 15px rgba(var(--sw-accent-rgb), 0.15);
}

.sw-wf-experience-overlay .sw-experience-dropdown-panel {
    top: calc(100% + 6px);
    background: var(--sw-bg-elevated);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sw-role-selector {
    display: flex;
    gap: 10px;
}

.sw-role-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--sw-bg-card);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--sw-border);
    color: var(--sw-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sw-role-card iconify-icon {
    font-size: 1rem;
}

.sw-role-card:hover {
    color: var(--sw-heading);
    transform: translateY(-2px);
}
/* Cache bust 1 */

.sw-wf-banner.has-active-dropdown,
.sw-wf-card.has-active-dropdown {
    z-index: 20;
}

.sw-wf-edit-cover-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 35;
}

.sw-wf-edit-cover-btn,
.sw-platform-trigger,
.sw-specialization-trigger,
.sw-experience-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sw-heading);
    cursor: pointer;
}

.sw-wf-edit-cover-btn {
    padding: 8px 12px;
    border: 1px solid var(--sw-border);
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.72);
    backdrop-filter: blur(12px);
    font-size: 0.9rem;
}

.sw-wf-inline-url-input {
    position: absolute;
    display: none;
    z-index: 40;
    min-width: 260px;
    padding: 10px;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.sw-wf-inline-url-input input {
    width: 100%;
}

.sw-wf-avatar-overlay-wrap {
    position: absolute;
    left: 28px;
    bottom: -48px;
    z-index: 25;
}

.sw-wf-avatar-container {
    position: relative;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.sw-wf-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: linear-gradient(135deg, rgba(46, 46, 54, 1), rgba(26, 26, 32, 1));
}

.sw-wf-avatar-edit-trigger,
.avatar-verified-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sw-wf-avatar-edit-trigger {
    right: 6px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    background: rgba(9, 9, 12, 0.9);
    border: 1px solid var(--sw-border);
    color: var(--sw-heading);
    cursor: pointer;
}

.avatar-verified-badge {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: rgba(17, 110, 255, 0.9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 110, 255, 0.35);
}

.sw-wf-card {
    position: relative;
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--sw-border);
    border-radius: 20px;
    background: rgba(16, 16, 20, 0.88);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.sw-wf-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--sw-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.sw-wf-grid-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.sw-wf-col,
.sw-wf-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-wf-col label,
.sw-wf-row label,
.sw-wf-about-header label,
.sw-social-label {
    color: var(--sw-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.sw-wf-input,
.sw-wf-textarea,
.sw-dropdown-search-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--sw-text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sw-wf-input::placeholder,
.sw-wf-textarea::placeholder,
.sw-dropdown-search-wrap input::placeholder {
    color: var(--sw-text-muted);
}

.sw-wf-input:focus,
.sw-wf-textarea:focus,
.sw-dropdown-search-wrap input:focus {
    border-color: rgba(var(--sw-accent-rgb), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--sw-accent-rgb), 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.sw-wf-input[disabled],
.sw-wf-textarea[disabled] {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.sw-wf-textarea {
    min-height: 132px;
    overflow-y: hidden;
    resize: none;
}

.sw-wf-about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.sw-wf-word-counter {
    color: var(--sw-text-muted);
    font-size: 0.86rem;
}

.sw-specialization-select-container,
.sw-platform-select-container,
.sw-experience-select-container {
    position: relative;
}

.sw-specialization-trigger,
.sw-platform-trigger {
    min-height: 48px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    justify-content: space-between;
    flex-wrap: wrap;
}

.sw-specialization-trigger.active,
.sw-platform-trigger.active,
.sw-experience-trigger.active {
    border-color: rgba(var(--sw-accent-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--sw-accent-rgb), 0.12);
}

.placeholder-text {
    color: var(--sw-text-muted);
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 1rem;
    color: var(--sw-text-muted);
}

.sw-specialization-dropdown-panel,
.sw-platform-dropdown-panel,
.sw-experience-dropdown-panel {
    position: absolute;
    left: 0;
    right: 0;
    display: none;
    z-index: 50;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    background: rgba(10, 10, 12, 0.97);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.sw-dropdown-search-wrap {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 2px;
    background: rgba(10, 10, 12, 0.97);
}

.sw-dropdown-search-wrap iconify-icon {
    color: var(--sw-text-muted);
}

.sw-dropdown-options-list,
.sw-experience-options-list {
    overflow: visible;
}

.sw-dropdown-option,
.sw-experience-option,
.sw-platform-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--sw-text);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.sw-dropdown-option:hover,
.sw-experience-option:hover,
.sw-platform-option:hover,
.sw-dropdown-option.selected,
.sw-experience-option.selected {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
}

.option-checkbox,
.platform-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.option-checkbox {
    border: 1px solid var(--sw-border-light);
    background: transparent;
}

.sw-dropdown-option.selected .option-checkbox {
    background: var(--sw-accent);
    border-color: var(--sw-accent);
}

.border-beginner { background: #5dd39e; }
.border-indie { background: #ffb347; }
.border-pro { background: #7c6cff; }

.sw-selected-chip,
.sw-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    color: var(--sw-heading);
}

.sw-selected-chip .close-icon,
.sw-platform-chip .close-icon {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.sw-social-chips-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sw-social-chips-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 320px;
}

.sw-platform-chip.tier-beginner { border: 1px solid rgba(93, 211, 158, 0.35); }
.sw-platform-chip.tier-indie { border: 1px solid rgba(255, 179, 71, 0.35); }
.sw-platform-chip.tier-pro { border: 1px solid rgba(124, 108, 255, 0.35); }

.sw-platform-select-container {
    position: relative;
    min-width: 200px;
}

.sw-wf-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-wf-social-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.sw-wf-social-item.is-unlocked {
    border-color: rgba(81, 187, 255, 0.18);
}

.sw-wf-social-item.is-locked {
    border-color: rgba(255, 190, 92, 0.18);
    background: linear-gradient(90deg, rgba(255, 190, 92, 0.04), rgba(255, 255, 255, 0.02));
}

.sw-wf-social-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.sw-wf-social-item .sw-wf-input {
    flex: 1 1 auto;
}

.sw-wf-social-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 92px;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(10, 10, 12, 0.82);
    color: var(--sw-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: help;
}

.sw-wf-social-status.is-free {
    border-color: rgba(93, 211, 158, 0.28);
    color: #9ee7c1;
}

.sw-wf-social-status.is-unlocked {
    border-color: rgba(81, 187, 255, 0.28);
    color: #9ddcff;
}

.sw-wf-social-status.is-locked {
    border-color: rgba(255, 190, 92, 0.28);
    color: #ffd290;
}

.sw-wf-social-status::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 240px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(8, 8, 10, 0.96);
    color: var(--sw-text);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sw-wf-social-status:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.sw-wf-social-lock-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(14, 14, 16, 0) 0%, rgba(14, 14, 16, 0.72) 50%, rgba(14, 14, 16, 0.92) 100%);
    pointer-events: none;
}

.sw-wf-social-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.9);
    color: var(--sw-heading);
    font-size: 0.8rem;
}

.sw-security-info-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.sw-security-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--sw-accent-rgb), 0.12);
    color: var(--sw-heading);
    font-size: 1.3rem;
}

.sw-security-info-text p {
    margin: 0 0 10px;
    color: var(--sw-text-muted);
    line-height: 1.6;
}

.sw-security-info-text p:last-child {
    margin-bottom: 0;
}

.sw-wf-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.sw-wf-btn-save,
.sw-wf-btn-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sw-wf-btn-save {
    border: 0;
    background: linear-gradient(135deg, var(--sw-accent), #8b7bff);
    color: #fff;
    box-shadow: 0 16px 36px rgba(var(--sw-accent-rgb), 0.26);
    cursor: pointer;
}

.sw-wf-btn-preview {
    border: 1px solid var(--sw-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sw-heading);
}

.sw-wf-btn-save:hover,
.sw-wf-btn-preview:hover {
    transform: translateY(-1px);
}

#sw-toast-container {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    transform: translateX(-50%);
}

.sw-toast {
    min-width: 280px;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 66, 77, 0.28);
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.95);
    color: var(--sw-heading);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.sw-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sw-wireframe-container {
        margin: 24px auto;
        padding: 0 14px;
    }

    .sw-wf-banner {
        height: 220px;
        margin-bottom: 76px;
    }

    .sw-wf-avatar-overlay-wrap {
        left: 20px;
        bottom: -42px;
    }

    .sw-wf-avatar-container {
        width: 112px;
        height: 112px;
    }

    .sw-wf-card {
        padding: 18px;
    }

    .sw-wf-grid-row,
    .sw-wf-action-bar,
    .sw-security-info-card,
    .sw-wf-social-item,
    .sw-social-chips-wrapper,
    .sw-wf-about-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .sw-wf-social-item label {
        width: auto !important;
    }

    .sw-wf-social-item .sw-wf-input {
        margin-left: 0 !important;
    }

    .sw-wf-social-status::after {
        left: 0;
        right: auto;
        width: min(240px, calc(100vw - 56px));
    }
}

/* Archive Header Updates */
.archive-subtitle {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
}
.archive-subtitle p {
    margin-bottom: 8px;
}
.archive-subtitle p:last-child {
    margin-bottom: 0;
}
.sw-faq-scroll-btn {
    margin-top: 12px;
    padding: 6px 16px;
    border-color: rgba(255, 77, 0, 0.5);
    color: var(--primary);
    background: transparent;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.sw-faq-scroll-btn:hover {
    background: rgba(255, 77, 0, 0.1);
    border-color: var(--primary);
}
.sw-archive-faqs-wrapper {
    display: none;
    margin: 40px auto;
    max-width: 100%;
    padding: 24px;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}
.sw-archive-faqs-wrapper.open {
    display: block;
}
.sw-archive-faqs-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--sw-heading);
}
.sw-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}
.sw-faq-item:last-child {
    border-bottom: none;
}
.sw-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--sw-text);
    list-style: none; /* remove default details arrow */
}
.sw-faq-question::-webkit-details-marker {
    display: none;
}
.sw-faq-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}
.sw-faq-item[open] .sw-faq-icon {
    transform: rotate(180deg);
}
.sw-faq-answer {
    padding-top: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

