h1,
.asset-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--sw-heading);
}

h2,
.feedback-form-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--sw-heading);
}

h3,
.card-header h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sw-heading);
}

p,
.asset-description,
.feedback-form-desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.7);
}

.asset-single-wrapper {

    min-height: calc(100vh - 80px);
    overflow-x: clip;
}

.asset-single-wrapper .sw-container {
    max-width: 95%;
    width: 95%;
    margin-inline: auto;
    padding-inline: 0;
    margin-top: 0;
}

.asset-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas:
        "primary sidebar"
        "details sidebar";
    gap: 24px;
    align-items: flex-start;
}

.asset-content-col {
    display: contents;
}

.asset-primary-stack {
    grid-area: primary;
    min-width: 0;
}

.asset-details-stack {
    grid-area: details;
    min-width: 0;
}

.asset-primary-stack,
.asset-details-stack,
.asset-sidebar-col,
.asset-media-viewer,
.asset-tabs-section,
.asset-technical-specs,
.download-card,
.author-profile-card,
.share-section,
.related-assets-wrapper {
    max-width: 100%;
}

/* ==========================================================================
   LEFT COLUMN - MAIN CONTENT
   ========================================================================== */

/* Header Area (Title & Tags) */
.asset-header {
    margin-bottom: 20px;
}

.asset-title {
    margin: 0 0 12px 0;
    color: var(--sw-heading);
}

.asset-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--sw-text-dim);
    font-weight: 500;
    flex-wrap: wrap;
}

.asset-meta-row .meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asset-meta-row .meta-author a {
    color: var(--sw-accent);
    text-decoration: none;
    font-weight: 600;
}

.asset-meta-row .meta-separator {
    color: var(--sw-border-light);
    font-size: 14px;
}

.asset-meta-row .meta-date,
.asset-meta-row .meta-reviews {
    display: flex;
    align-items: center;
    gap: 4px;
}

.asset-meta-row .meta-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asset-meta-row .rating-badge {
    background: #27c96d;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 800;
    font-size: 11px;
}

/* Media Gallery */
.asset-media-viewer {
    /* margin-bottom: 40px; */
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    background: #000;
}

.media-featured {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: calc(100vh - 350px);
    min-height: 360px;
    /* background: #0a0a0a; */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-featured img,
.media-featured video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image, no cropping */
}

.no-media-placeholder {
    font-size: 48px;
    color: var(--sw-text-dim);
    opacity: 0.3;
}

.media-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    /* background: var(--sw-bg-card); */
    /* border: 1px solid var(--sw-border); */
    /* border-top: none; */
    /* border-radius: 0 0 var(--sw-radius-lg) var(--sw-radius-lg); */
    overflow-x: auto;
}

.thumb-box {
    width: 128px;
    height: 122px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    flex-shrink: 0;
    opacity: 0.6;
    background: var(--sw-bg-card);
    position: relative;
}

.thumb-box:hover,
.thumb-box.active {
    opacity: 1;
    border-color: var(--sw-accent);
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    /* Matches inner border radius */
}

/* Thumbnail overlays for PBR maps */
.thumb-box .thumb-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    background: rgb(13 13 13);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 2px 0;
    border-radius: 4px;
    border: 1px solid rgb(49 168 255);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #f5f2e9;
    font-size: 24px;
}


.tabs-header {
    display: inline-flex;

    padding: 4px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    position: relative;

}

/* Shimmer Animation for SaaS Button */
.feedback-area .submit-btn {
    position: relative;
    overflow: hidden;
}

.feedback-area .submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.feedback-area .submit-btn:hover::after {
    opacity: 1;
    left: 100%;
    transition: 0.6s;
}


.tab-btn {
    padding: 8px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;

}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background: var(--sw-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--sw-accent-rgb), 0.3);
}





.tabs-content {
    background: var(--sw-bg-card, #0d0d0d);
    border: 1px solid var(--sw-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--sw-radius-lg, 12px);
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tabs-content.collapsed {
    display: none !important;
}

/* Premium SaaS Slider Toggle Switch */
.sw-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.sw-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sw-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.04);
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    border: 1px solid var(--sw-border, rgba(255, 255, 255, 0.08));
}

.sw-toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.sw-toggle-switch:hover .sw-toggle-slider {
    border-color: rgba(255, 255, 255, 0.2);
}

.sw-toggle-switch input:checked + .sw-toggle-slider {
    background-color: rgba(49, 168, 255, 0.1);
    border-color: var(--sw-accent, #31a8ff);
    box-shadow: 0 0 15px rgba(49, 168, 255, 0.15);
}

.sw-toggle-switch input:checked + .sw-toggle-slider::before {
    transform: translateX(24px);
    background-color: var(--sw-accent, #31a8ff);
    box-shadow: 0 0 8px rgba(49, 168, 255, 0.8);
}

/* Tabs toggle active label */
.tabs-toggle-wrapper span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--sw-text-dim, #7f8794);
    transition: color 0.3s ease;
}

.tabs-toggle-wrapper.active span {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Description Typography Enhancement */
.asset-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.asset-description p {
    margin-bottom: 24px;
}

.asset-description strong,
.asset-description b {
    color: var(--sw-heading);
    font-weight: 700;
}


.tab-pane {
    display: none;
    animation: slideUpFade 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-pane.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Description Tab Content */
.asset-description {
    line-height: 1.8;
    color: var(--sw-text-muted);
}

.asset-description p {
    margin-bottom: 20px;
}

.asset-description h2,
.asset-description h3 {
    color: #f5f2e9;
    margin: 30px 0 15px 0;
}

/* Feedback area styling */
.feedback-area {
    margin-top: 0;
}

.feedback-title {
    color: #f5f2e9;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ULTRA-PREMIUM SAAS FEEDBACK UI (STRIPE-INSPIRED)
   ========================================================================== */

.feedback-form-wrapper {
    max-width: 100%;
    padding: 30px;
    margin-top: 10px;

    position: relative;
    overflow: hidden;
}

/* Subtle corner glow */
.feedback-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: transparent;
    pointer-events: none;
}

.feedback-form-title {
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.feedback-form-desc {
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 500px;
}



.comment-form-field textarea::placeholder {
    color: var(--sw-border-light);
}

/* Premium SaaS Action Button */
.feedback-area .submit-btn {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #000000;
    padding: 10px 30px;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.feedback-area .submit-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feedback-area .submit-btn:active {
    transform: translateY(0);
}

/* Success State SaaS */
.feedback-success-message {
    padding: 60px 0;
}

.feedback-success-message h4 {
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0;
}

.feedback-success-message p {
    color: #888888;
    max-width: 400px;
    margin-inline: auto;
}





.reply-title {
    color: var(--sw-heading);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.comment-form-field textarea {
    width: 100%;
    background: #000000;
    border: 1px solid var(--sw-border);
    border-radius: 6px;
    color: #f5f2e9;
    padding: 15px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.comment-form-field textarea:focus {
    outline: none;
    border-color: var(--sw-accent);
}

.submit-btn {
    margin-top: 15px;
    background: var(--sw-accent);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.logged-in-as {
    font-size: 12px;
    color: var(--sw-text-dim);
    margin-bottom: 15px;
}

.logged-in-as a {
    color: var(--sw-accent);
    text-decoration: none;
}

.no-feedback-yet {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    border: 1px dashed var(--sw-border);
    margin-bottom: 30px;
}

.no-feedback-yet iconify-icon {
    font-size: 40px;
    color: var(--sw-text-dim);
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-feedback-yet h4 {
    color: #f5f2e9;
    font-size: 16px;
    margin-bottom: 8px;
}

.no-feedback-yet p {
    color: var(--sw-text-dim);
    font-size: 13px;
    margin: 0;
}




/* Technical Specifications */
.section-title {
    color: var(--sw-text-dim);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}



.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    gap: 10px;
    border-bottom: 1px solid var(--sw-border);
    flex-wrap: wrap;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 13px;
    color: var(--sw-text-dim);
    font-weight: 500;
    flex: 1;
    min-width: 100px;
}

.spec-value {
    font-size: 13px;
    color: #f5f2e99f;
    text-align: right;
    flex: 1;
    min-width: 150px;
    word-break: break-word;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.is-yes .status-dot {
    background: #27c96d;
    box-shadow: 0 0 8px rgba(39, 201, 109, 0.4);
}

.status-indicator.is-no .status-dot {
    background: #ff4757;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
}

.status-indicator.is-info .status-dot {
    background: var(--sw-accent);
    box-shadow: 0 0 8px rgba(var(--sw-accent-rgb), 0.4);
}

/* Software Icons in Specs */
.software-row .spec-values {
    display: flex;
    gap: 10px;
}

.sw-badge {
    position: relative;
    width: 32px;
    height: 32px;
    background: var(--sw-bg-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f2e9;
    border: 1px solid var(--sw-border);
    transition: all 0.2s ease;
}

/* Custom Tooltip System */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #f5f2e9;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--sw-border);
    pointer-events: none;
    z-index: 10000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.sw-badge:hover {
    border-color: var(--sw-accent);
    background: rgba(var(--sw-accent-rgb), 0.05);
}

/* Included Maps */
.maps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 100%;
    min-width: 0;
}

.map-chip {
    padding: 3px 8px;
    background: var(--sw-bg-hover);
    border-radius: 4px;
    color: var(--sw-text-dim);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.03);
    max-width: 100%;
}

.map-chip,
.sw-chip-name {
    overflow-wrap: anywhere;
}

.sw-chip-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    object-fit: contain;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sw-chip-name {
    line-height: 1;
}


.map-chip:hover {
    background: rgba(49, 168, 255, 0.1);
    color: var(--sw-accent);
    border-color: rgba(49, 168, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   TOOLTIPS
   ========================================================================== */
.licence-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.licence-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 15, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #f5f2e9;
    padding: 10px 15px;
    border-radius: var(--sw-radius-md);
    border: 1px solid var(--sw-border);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    width: 280px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 100000;
    transition: all 0.2s ease;
    pointer-events: none;
}

.licence-tooltip ul,
.licence-tooltip ol {
    margin: 0;
    padding-left: 15px;
}

.licence-tooltip li {
    margin-bottom: 5px;
}

.licence-tooltip p {
    margin: 0 0 8px 0;
}

.licence-tooltip p:last-child,
.licence-tooltip ul:last-child {
    margin-bottom: 0;
}

/* Tooltip Arrow */
.licence-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}

.licence-tooltip-wrapper:hover {
    z-index: 100001;
}

.licence-tooltip-wrapper:hover .licence-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* Smart Positioning: Show Below when near top of viewport */
.licence-tooltip.show-below {
    bottom: auto;
    top: 100%;
    transform: translateX(-50%) translateY(5px);
}

.licence-tooltip.show-below::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent rgba(15, 15, 15, 0.98) transparent;
}

.licence-tooltip-wrapper:hover .licence-tooltip.show-below {
    transform: translateX(-50%) translateY(12px);
}

/* ==========================================================================
   RIGHT COLUMN - SIDEBAR
   ========================================================================== */
.asset-sidebar-col {
    grid-area: sidebar;
    position: sticky;
    top: 90px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px 20px;
    background: #0d0d0d;
    border-radius: 12px;
    border: 1px solid var(--sw-border, rgba(255, 255, 255, 0.08));
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.asset-sidebar-col::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Unified clean styles for dashboard elements inside full sidebar column */
.asset-sidebar-col .author-profile-card,
.asset-sidebar-col .download-card,
.asset-sidebar-col .share-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
    border-radius: 0 !important;
}

.asset-sidebar-col .author-profile-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.asset-sidebar-col .download-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.asset-sidebar-col .card-header {
    background: transparent !important;
    padding: 0 0 12px 0 !important;
    border-bottom: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.asset-sidebar-col .card-body {
    padding: 0 !important;
}

/* Download Card */
.download-card {
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    /* Remove overflow: hidden to allow tooltips to break out */
    position: relative;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--sw-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    /* Essential root fix: Since overflow:hidden is removed from parent, round the corners here */
    border-top-left-radius: var(--sw-radius-lg);
    border-top-right-radius: var(--sw-radius-lg);
    position: relative;

}

.card-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--sw-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--sw-text-dim);
    letter-spacing: 0.5px;
}

.card-body {
    padding: 20px;
}

/* Download Items List */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.download-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    background: rgb(0 0 0 / 71%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.download-item-link:hover {
    border: 1px solid rgba(255, 255, 255, 0.1);

    border-color: rgba(49, 168, 255, 0.4);
}

/* Software Icon */
.dl-sw-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f2e9;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.download-item-link:hover .dl-sw-icon {
    background: rgba(255, 255, 255, 0.1);
}

.dl-sw-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dl-sw-icon iconify-icon {
    font-size: 20px;
}

/* Content */
.dl-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    min-width: 0;
}

.dl-title {
    font-size: 12px;
    font-weight: 500;
    color: #f5f2e9;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.download-item-link:hover .dl-title {
    color: #fff;
}

.dl-subtitle {
    font-size: 10px;
    color: var(--sw-text-dim);
    line-height: 1.2;
    transition: color 0.2s ease;
}

.dl-filetype-badge {
    align-self: flex-start;
    display: inline-block;
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 3px;
    margin-bottom: 3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Action Pill */
.dl-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.dl-action-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2px;
    gap: 0;
    overflow: hidden;
    max-width: 34px;
    /* Only show icon initially */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy expand */
}

.download-item-link:hover .dl-action-pill {
    max-width: 120px;
    /* Expand to show text */
    background: rgba(255, 255, 255, 0.08);
}

.dl-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #31a8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dl-icon-circle iconify-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.download-item-link:hover .dl-icon-circle {
    background: #31a8ff;
    /* Vibrant Blue */
    color: #000000;
    box-shadow: 0 0 15px rgba(49, 168, 255, 0.5);
    border-color: #31a8ff;
}

.download-item-link:hover .dl-icon-circle iconify-icon {
    transform: translateY(2px);
}

.dl-size-text {
    font-size: 11px;
    font-weight: 500;
    color: #31a8ff;
    white-space: nowrap;
    padding: 0 10px 0 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.download-item-link:hover .dl-size-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

/* 2x2 Stats Grid */
.stats-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.download-card {
    position: relative;

    /* Naturally higher than author card */
}

.stat-box {
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sw-text-dim);
    font-weight: 700;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: #f5f2e9;
}

/* Author Profile Card */
.author-profile-card {
    position: relative;

    /* Lower than download card */
    background: var(--sw-bg-card);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-lg);
    padding: 20px;
}

.author-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.author-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--sw-border);
}

.author-profile-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}

.author-name:hover {
    color: var(--sw-accent);
}

.author-handle {
    color: var(--sw-text-dim);
    font-size: 11px;
    font-weight: 500;
}

.author-action-btns {
    display: flex;
    gap: 10px;
}

.author-action-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.author-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Share Buttons */
.share-btn {
    flex: 1;
    color: #fff;
    padding: 3px 0;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Copy Link Box */
.copy-link-box {
    display: flex;
    gap: 5px;
    width: 100%;
}

.copy-link-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 1px dashed;
    border-color: rgba(49, 168, 255, 0.56);
    padding: 6px 15px;
    color: var(--sw-text-dim);
    font-size: 12px;
    outline: none;
    width: 100%;
    border-radius: 4px;
}

.copy-link-btn {
    background: var(--sw-accent);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.copy-link-btn:hover {
    background: color-mix(in srgb, var(--sw-accent) 80%, white);
    transform: translateY(-1px);
}

.copy-link-btn.copied {
    background: #27c96d;
    /* Success Green */
}

.copy-msg {
    position: absolute;
    top: -32px;
    background: #27c96d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.copy-msg::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #27c96d transparent transparent transparent;
}

.copy-link-btn.copied .copy-msg {
    opacity: 1;
    transform: translateY(0);
}

/* User Action Buttons Active State */
.author-action-btn.active {
    background: color-mix(in srgb, var(--sw-accent) 20%, transparent);
    border-color: var(--sw-accent);
    color: var(--sw-accent);
}

/* Login Modal Overlay */
/* ==========================================================================
   MODALS & LOGIN PROMPTS (Premium SaaS)
   ========================================================================== */

.sw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sw-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sw-modal-content {
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
    transform: translateY(30px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.sw-modal-overlay.show .sw-modal-content {
    transform: translateY(0) scale(1);
}

/* Glassmorphism Glow for Modal */
.sw-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;

}

.sw-modal-content>* {
    position: relative;

}

.sw-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none;
    color: #ffffff99;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sw-modal-close:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
    transform: rotate(90deg);
}

.sw-modal-icon {
    font-size: 48px;
    color: var(--sw-accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 122, 255, 0.3));
}

.sw-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.sw-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sw-modal-btn.primary {
    background: #fff;
    color: #000;
}

.sw-modal-btn.primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.sw-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Feedback Login Required Card */
.feedback-login-required {
    background: rgba(13, 13, 13, 0.4);
    border: 1px solid var(--sw-border);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.feedback-login-required iconify-icon {
    font-size: 40px;
    color: var(--sw-accent);
    margin-bottom: 15px;
    opacity: 0.8;
}

.feedback-login-required h4 {
    margin-bottom: 10px;
}

.feedback-login-required p {
    max-width: 300px;
    margin-inline: auto;
    margin-bottom: 25px;
}

/* ==========================================================================
   PRO ENHANCEMENTS (BREADCRUMBS, GALLERY, INTERACTIONS)
   ========================================================================== */

/* Breadcrumb Pills */
.asset-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 11px;
    font-weight: 700;
}

.bc-item {
    color: var(--sw-text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bc-item:hover {
    color: #fff;
}

.bc-sep {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.1);
}

.active-pill {
    background: rgba(49, 168, 255, 0.1);
    color: var(--sw-accent);
    padding: 2px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(49, 168, 255, 0.2);
}

.active-pill iconify-icon {
    font-size: 13px;
}

.bc-item.current {
    color: #fff;
    opacity: 0.6;
}

/* Gallery Polish & Breathe */
.media-featured {
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

.media-featured img,
.media-featured video {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.media-featured:hover img,
.media-featured:hover video {
    transform: scale(1.005);
    /* Subtle Breathe */
}

.zoom-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-indicator:hover {
    background: var(--sw-accent);
    color: #000;
    transform: scale(1.1) !important;
}

.media-featured:hover .zoom-indicator {
    opacity: 1;
    transform: scale(1);
}

/* Gallery Lightbox Modal */
.gallery-modal {
    background: rgba(0, 0, 0, 0.98) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img,
.gallery-modal-content video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10002;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gallery-nav-btn:hover {
    background: var(--sw-accent);
    color: #000;
    border-color: var(--sw-accent);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 40px;
}

.gallery-nav-btn.next {
    right: 40px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Download Pulse Interaction */
@keyframes dlPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(49, 168, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(49, 168, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(49, 168, 255, 0);
    }
}

.download-item-link:hover .dl-icon-circle {
    animation: dlPulse 1.5s infinite;
}

/* Description Checkmarks */
.asset-description ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.asset-description li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.asset-description li strong,
.asset-description li b {
    color: #f5f2e9;
}

.li-check {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--sw-accent);
    font-size: 16px;
}

/* Sidebar Scroll Progress */
.sidebar-scroll-progress {
    position: absolute;
    top: -1px;
    left: 0;
    height: 2px;
    background: var(--sw-accent);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
    z-index: 10;
    border-radius: 2px;
}



/* Tab Counter Badge */
.tab-count {
    background: var(--sw-accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Related Assets Section */
.related-assets-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--sw-border);
}

.related-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.related-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    white-space: nowrap;
}

.related-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--sw-border), transparent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px;
}

/* Thumbnail Scroll Arrows */
.thumb-slider-btn:hover {
    background: var(--sw-accent, #31a8ff) !important;
    color: #000 !important;
    border-color: var(--sw-accent, #31a8ff) !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.thumb-slider-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.media-thumbnails::-webkit-scrollbar {
    display: none !important;
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr !important;
    }
}



@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1024px) {
    .asset-single-wrapper .sw-container {
        max-width: 92%;
        width: 92%;
    }

    .asset-layout-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "primary"
            "sidebar"
            "details";
        gap: 20px;
    }

    .asset-sidebar-col {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .asset-single-wrapper .sw-container {
        max-width: 100%;
        width: 100%;
        padding-inline: 14px;
        margin-top: 0;
    }

    .asset-header {
        margin-bottom: 14px;
    }

    .asset-breadcrumbs {
        white-space: normal;
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible;
        text-overflow: clip;
    }

    .asset-title {
        font-size: 18px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .asset-meta-row {
        gap: 8px;
    }

    .asset-meta-row .meta-separator {
        display: none;
    }

    .asset-media-viewer {
        margin-bottom: 0;
        border-radius: 8px;
    }

    .media-thumbnails {
        gap: 8px;
        padding: 8px;
        border-radius: 0 0 8px 8px;
    }

    .thumb-box {
        width: 90px;
        height: 85px;
    }

    .thumb-box .thumb-badge {
        font-size: 11px !important;
        padding: 1px 0 !important;
        bottom: 2px !important;
        left: 2px !important;
        right: 2px !important;
    }

    .tabs-header {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .tab-btn {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 100px !important;
        padding: 10px 16px !important;
        text-align: center !important;
        font-size: 13px !important;
        width: 100% !important;
        min-height: 42px !important;
        color: rgba(255, 255, 255, 0.6) !important;
        font-weight: 600 !important;
    }

    .tab-btn.active {
        background: var(--sw-accent, #31a8ff) !important;
        color: #000 !important;
        border-color: var(--sw-accent, #31a8ff) !important;
    }

    .tabs-divider {
        display: none !important;
    }

    .tabs-toggle-wrapper {
        grid-column: span 2 !important;
        justify-content: center !important;
        margin-top: 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 100px !important;
        padding: 10px 20px !important;
        width: 100% !important;
    }

    .card-body,
    .author-profile-card,
    .share-section {
        padding: 16px !important;
    }

    .download-item-link,
    .copy-link-box {
        min-width: 0;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-buttons .share-btn {
        min-width: calc(50% - 3px);
    }

    .asset-tags-row {
        gap: 10px;
    }

    .specs-card {
        padding: 0 15px;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}



/* ==========================================================================
   AI-GENERATED CONTENT STYLES (Tables, Links, Headings, etc.)
   Applies inside .asset-description / .entry-content
   ========================================================================== */

/* --- Headings --- */
.asset-description h2 {
    font-size: 18px;
    font-weight: 700;
    color: #f5f2e9;
    margin: 40px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    padding-left: 14px;
}

.asset-description h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 12px;
    width: 3px;
    background: var(--sw-accent);
    border-radius: 3px;
}

.asset-description h3 {
    font-size: 15px;
    font-weight: 600;
    color: #e0ddd4;
    margin: 28px 0 12px 0;
}

.asset-description h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    margin: 20px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Links (Internal Links embedded by AI) --- */
.asset-description a {
    color: var(--sw-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--sw-accent-rgb), 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.asset-description a:hover {
    color: var(--sw-accent-hover);
    border-bottom-color: var(--sw-accent-hover);
    text-shadow: 0 0 8px rgba(var(--sw-accent-rgb), 0.3);
}

/* --- Tables --- */
.asset-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.asset-description thead {
    background: rgba(var(--sw-accent-rgb), 0.08);
}

.asset-description thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sw-accent);
    border-bottom: 1px solid rgba(var(--sw-accent-rgb), 0.15);
    white-space: nowrap;
}

.asset-description tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.asset-description tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.asset-description tbody tr:hover {
    background: rgba(var(--sw-accent-rgb), 0.04);
}

.asset-description tbody tr:last-child {
    border-bottom: none;
}

.asset-description td {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    vertical-align: top;
    line-height: 1.5;
}

.asset-description td:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* --- Lists (ol additions - ul already styled above) --- */
.asset-description ol {
    padding-left: 20px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.7);
}

.asset-description ol li {
    margin-bottom: 10px;
    padding-left: 8px;
}

.asset-description ol li::marker {
    color: var(--sw-accent);
    font-weight: 700;
}

/* --- Blockquotes --- */
.asset-description blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--sw-accent);
    background: rgba(var(--sw-accent-rgb), 0.04);
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.asset-description blockquote p {
    margin: 0;
}

/* --- Code/Pre --- */
.asset-description code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #ff7b72;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.asset-description pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

.asset-description pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Horizontal Rules --- */
.asset-description hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 30px 0;
}

/* --- Images inside content --- */
.asset-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* --- FAQs Section (if rendered in content) --- */
.asset-description .faq-item,
.asset-description details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.asset-description details summary {
    padding: 14px 16px;
    cursor: pointer;
    color: #f5f2e9;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-description details summary::-webkit-details-marker {
    display: none;
}

.asset-description details summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(var(--sw-accent-rgb), 0.1);
    color: var(--sw-accent);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.asset-description details[open] summary::before {
    content: '−';
    background: rgba(var(--sw-accent-rgb), 0.2);
}

.asset-description details summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.asset-description details>*:not(summary) {
    padding: 0 16px 14px 44px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.7;
}

/* --- Responsive for Description Content --- */
@media (max-width: 768px) {
    .asset-description h2 {
        font-size: 16px;
        margin-top: 30px;
    }

    .asset-description h3 {
        font-size: 14px;
    }

    .asset-description table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .asset-description thead th,
    .asset-description td {
        padding: 8px 12px;
    }

    .asset-description td:first-child {
        white-space: nowrap;
        min-width: 120px;
    }
}

@media (max-width: 1440px) {
    .asset-single-wrapper .sw-container {
        max-width: 95%;
        width: 95%;
        margin-inline: auto;
        padding-inline: 0;
        margin-top: 0;
    }
}

/* ==========================================================================
   UPGRADE: Gallery CLS reservation (aspect-ratio + async decode)
   ========================================================================== */


.media-featured.is-media-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.07) 45%, transparent 70%);
    background-size: 220% 100%;
    animation: swMediaShimmer 1.1s linear infinite;
}

@keyframes swMediaShimmer {
    to {
        background-position: -220% 0;
    }
}

.thumb-box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   UPGRADE: Trust-signals strip inside the download card
   ========================================================================== */
.sw-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--sw-border, rgba(255, 255, 255, 0.08));
    background: rgba(255, 255, 255, 0.015);
}

.sw-trust-strip:empty {
    display: none;
}

.sw-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--sw-text-dim, #808080);
    white-space: nowrap;
}

.sw-trust-item strong {
    color: var(--sw-heading, #fff);
    font-weight: 700;
}

.sw-trust-item iconify-icon {
    font-size: 15px;
    color: var(--sw-text-muted, #808080);
}

.sw-trust-item .sw-trust-star {
    color: #f5b301;
}

.sw-trust-item .sw-trust-dim {
    color: var(--sw-text-muted, #808080);
}

/* Make the primary download action explicit on every input method. */
.dl-action-pill {
    max-width: none;
    min-height: 34px;
    padding: 2px 8px 2px 2px;
    gap: 6px;
    border: 1px solid rgba(var(--sw-accent-rgb), 0.22);
}

.download-item-link:hover .dl-action-pill {
    max-width: none;
    background: rgba(var(--sw-accent-rgb), 0.12);
}

.dl-action-label {
    color: var(--sw-heading, #fff);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.dl-size-text {
    padding: 0;
    color: var(--sw-text-dim, #808080);
    opacity: 1;
    transform: none;
}

.download-item-link:focus-visible,
.tab-btn:focus-visible {
    outline: 3px solid var(--sw-accent, #31a8ff);
    outline-offset: 3px;
}

/* High-use download-card styles moved out of single.php for consistency. */
.sw-license-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sw-license-label {
    color: var(--sw-text-dim);
}

.sw-license-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sw-accent);
}

.sw-license-help {
    color: var(--sw-text-muted);
    cursor: help;
    font-size: 14px;
}

.sw-license-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.sw-license-terms-title {
    margin: 0 0 5px;
    color: var(--sw-accent);
    font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .media-featured.is-media-loading::after {
        animation: none;
    }
}