/* ================================================================
   SOFTWARE LIST PAGE — aft-sw-* namespace
   ================================================================ */

/* ── Hero ── */
.aft-sw-hero {
    position: relative;
    width: 100%;
    padding: calc(var(--header-h) + 40px) 20px 48px;
    background: linear-gradient(165deg, #f0f4ff 0%, #e8eeff 40%, #f0f0ff 70%, #f5f3ff 100%);
    overflow: hidden;
}

html.dark-theme .aft-sw-hero {
    background: linear-gradient(165deg, #0f1117 0%, #141a2a 40%, #1e1b4b 70%, #1a1035 100%);
}

.aft-sw-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aft-sw-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.aft-sw-hero-glow--1 {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
}

.aft-sw-hero-glow--2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
}

html.dark-theme .aft-sw-hero-glow--1 {
    opacity: 0.25;
}
html.dark-theme .aft-sw-hero-glow--2 {
    opacity: 0.2;
}

.aft-sw-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Badge */
.aft-sw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99,102,241,0.10);
    border: 1px solid rgba(99,102,241,0.20);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.aft-sw-hero-badge i {
    font-size: 0.7rem;
}

.aft-sw-hero-badge-sep {
    color: var(--text-muted);
}

/* Title */
.aft-sw-hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.aft-sw-hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aft-sw-hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 600px;
}
/* ── Search ── */
.aft-sw-hero-search {
    position: relative;
    max-width: 580px;
    margin: 0 auto 28px;
}

.aft-sw-hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.aft-sw-hero-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(99,102,241,0.12), 0 0 0 4px rgba(99,102,241,0.06);
}

.aft-sw-hero-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.aft-sw-hero-search-icon i {
    font-size: 1rem;
}

.aft-sw-hero-search-input {
    width: 100%;
    padding: 16px 120px 16px 52px;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    font-family: inherit;
}

.aft-sw-hero-search-input::placeholder {
    color: var(--text-muted);
}

.aft-sw-hero-search-clear {
    position: absolute;
    right: 68px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aft-sw-hero-search-clear:hover {
    color: var(--text);
    background: var(--border);
}

.aft-sw-hero-search-btn {
    position: absolute;
    right: 5px;
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.aft-sw-hero-search-btn i {
    font-size: 0.9rem;
    color: #fff;
}

.aft-sw-hero-search-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* ── Search Suggestions ── */
.aft-sw-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 999;
    max-height: 400px;
    overflow-y: auto;
}

.aft-sw-suggestions-inner {
    padding-bottom: 4px;
}

.aft-sw-sug-header {
    padding: 12px 18px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}

.aft-sw-sug-loading {
    padding: 24px;
    text-align: center;
    color: var(--accent);
}

.aft-sw-sug-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-muted);
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.aft-sw-sug-item:last-child {
    border-bottom: none;
}

.aft-sw-sug-item:hover,
.aft-sw-sug-item--active {
    background: rgba(99,102,241,0.06);
    color: var(--text);
}

.aft-sw-sug-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--accent);
}

.aft-sw-sug-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.aft-sw-sug-icon i {
    font-size: 1rem;
}

.aft-sw-sug-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.aft-sw-sug-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.aft-sw-sug-name mark {
    background: rgba(99,102,241,0.15);
    color: var(--accent);
    border-radius: 2px;
    padding: 0 2px;
}

.aft-sw-sug-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.aft-sw-sug-badge {
    background: rgba(99,102,241,0.08);
    color: var(--accent);
    padding: 1px 8px;
    border-radius: 10px;
}

.aft-sw-sug-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aft-sw-sug-item:hover .aft-sw-sug-arrow {
    opacity: 1;
    transform: translateX(3px);
    transition: all 0.2s;
}

.aft-sw-sug-empty {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
}

.aft-sw-sug-empty i {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 8px;
    opacity: 0.4;
}
/* Stats */
.aft-sw-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 0 auto 0;
    max-width: 480px;
    box-shadow: var(--shadow);
}

.aft-sw-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
}

.aft-sw-hero-stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.aft-sw-hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.aft-sw-hero-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Main Layout ── */
.aft-sw-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .aft-sw-main {
        grid-template-columns: 1fr 320px;
        gap: 48px;
        padding: 40px 32px 60px;
    }
}

@media (min-width: 1280px) {
    .aft-sw-main {
        grid-template-columns: 1fr 340px;
        gap: 56px;
        padding: 48px 40px 72px;
    }
}

/* ── Left Column ── */
.aft-sw-articles {
    grid-column: 1 / -1;
}

@media (min-width: 1024px) {
    .aft-sw-articles {
        grid-column: 1;
    }
}

/* ── Search Banner ── */
.aft-sw-search-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.aft-sw-search-banner i {
    color: var(--accent);
}

.aft-sw-search-banner strong {
    color: var(--text);
}

.aft-sw-search-banner-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.aft-sw-search-banner-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ef4444;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.aft-sw-search-banner-clear:hover {
    background: rgba(239,68,68,0.08);
    text-decoration: underline;
}

/* ── Section Header ── */
.aft-sw-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.aft-sw-section-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aft-sw-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.aft-sw-section-icon--grid {
    background: rgba(99,102,241,0.12);
    color: var(--accent);
}

.aft-sw-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.aft-sw-section-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ── Software Grid ── */
.aft-sw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 480px) {
    .aft-sw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .aft-sw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .aft-sw-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.aft-sw-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.aft-sw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
    border-color: rgba(99,102,241,0.2);
}

.aft-sw-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.aft-sw-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(99,102,241,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.aft-sw-card-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.aft-sw-card-icon i {
    font-size: 1.2rem;
    color: var(--accent);
}

.aft-sw-card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.aft-sw-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 3px;
    line-height: 1.2;
}

.aft-sw-card-developer {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.aft-sw-card-developer i {
    font-size: 0.65rem;
}

.aft-sw-card-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aft-sw-card-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.aft-sw-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.aft-sw-card-badge {
    font-size: 0.6rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(99,102,241,0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.aft-sw-card-badge.license {
    background: rgba(16,185,129,0.08);
    color: #10b981;
    border-color: rgba(16,185,129,0.12);
}

.aft-sw-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aft-sw-card-rating {
    font-size: 0.7rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 2px;
}

.aft-sw-card-rating i {
    font-size: 0.6rem;
}

.aft-sw-card-download {
    color: var(--accent);
    font-size: 0.85rem;
    opacity: 0.6;
    transition: all 0.2s;
}

.aft-sw-card:hover .aft-sw-card-download {
    opacity: 1;
    transform: translateX(3px);
}

/* ── Empty State ── */
.aft-sw-empty {
    text-align: center;
    padding: 60px 20px;
}

.aft-sw-empty i {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: 16px;
}

.aft-sw-empty h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 8px;
}

.aft-sw-empty p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.aft-sw-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.aft-sw-empty-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}

/* ── Pagination ── */
.aft-sw-pagination {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.aft-sw-pagination-inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.aft-sw-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.aft-sw-page-btn:hover {
    background: rgba(99,102,241,0.06);
    border-color: var(--accent);
    color: var(--text);
    text-decoration: none;
}

.aft-sw-page-btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.aft-sw-page-btn--active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.aft-sw-page-btn--disabled {
    opacity: 0.35;
    pointer-events: none;
}

.aft-sw-page-btn--ellipsis {
    min-width: auto;
    padding: 0 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    pointer-events: none;
}

/* ── CTA Banner ── */
.aft-sw-cta {
    margin-top: 8px;
}

.aft-sw-cta-inner {
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 14px;
    padding: 36px 28px;
    text-align: center;
}

@media (min-width: 768px) {
    .aft-sw-cta-inner {
        padding: 44px 36px;
    }
}

.aft-sw-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(99,102,241,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
    color: var(--accent);
}

.aft-sw-cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .aft-sw-cta-title {
        font-size: 1.5rem;
    }
}

.aft-sw-cta-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.aft-sw-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.aft-sw-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
    color: #fff;
    text-decoration: none;
}

/* ── Sidebar ── */
.aft-sw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .aft-sw-sidebar {
        position: sticky;
        top: 84px;
        grid-column: 2;
        grid-row: 1;
    }
}

/* Mobile: sidebar appears after content */
@media (max-width: 1023px) {
    .aft-sw-main {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    .aft-sw-articles {
        order: 1;
        width: 100%;
    }
    
    .aft-sw-sidebar {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .aft-sw-widget--ad {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .aft-sw-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.aft-sw-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: var(--shadow);
}

.aft-sw-widget--ad {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.aft-sw-widget-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aft-sw-widget-title i {
    color: var(--accent);
    font-size: 0.75rem;
}

/* Popular List */
.aft-sw-popular-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aft-sw-popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.aft-sw-popular-item:hover {
    background: rgba(99,102,241,0.06);
    color: var(--text);
    text-decoration: none;
}

.aft-sw-popular-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--accent);
}

.aft-sw-popular-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.aft-sw-popular-name {
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
}

/* Top List */
.aft-sw-top-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aft-sw-top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.aft-sw-top-item:hover {
    background: rgba(99,102,241,0.06);
    color: var(--text);
    text-decoration: none;
}

.aft-sw-top-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(99,102,241,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.aft-sw-top-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.aft-sw-top-icon i {
    font-size: 0.85rem;
    color: var(--accent);
}

.aft-sw-top-name {
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
}

.aft-sw-top-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(16,185,129,0.08);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.10);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .aft-sw-hero {
        padding: calc(var(--header-h) + 20px) 16px 32px;
    }

    .aft-sw-hero-title {
        font-size: 1.7rem;
    }

    .aft-sw-hero-sub {
        font-size: 0.92rem;
    }

    .aft-sw-hero-search-input {
        font-size: 0.88rem;
        padding: 14px 90px 14px 44px;
    }

    .aft-sw-hero-search-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .aft-sw-hero-stats {
        padding: 12px 16px;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .aft-sw-hero-stat {
        padding: 0 10px;
    }

    .aft-sw-hero-stat-divider {
        display: none;
    }

    .aft-sw-main {
        padding: 24px 16px 40px;
        gap: 32px;
    }

    .aft-sw-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .aft-sw-card {
        padding: 14px;
    }

    .aft-sw-search-banner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }

    .aft-sw-search-banner-count {
        margin-left: 0;
    }

    .aft-sw-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .aft-sw-cta-inner {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .aft-sw-hero {
        padding: calc(var(--header-h) + 16px) 12px 24px;
    }

    .aft-sw-hero-title {
        font-size: 1.4rem;
    }

    .aft-sw-hero-sub {
        font-size: 0.85rem;
    }

    .aft-sw-hero-search-input {
        font-size: 0.82rem;
        padding: 12px 70px 12px 38px;
    }

    .aft-sw-hero-search-clear {
        right: 54px;
    }

    .aft-sw-hero-search-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .aft-sw-hero-search-box i {
        left: 16px;
        font-size: 0.85rem;
    }

    .aft-sw-hero-stats {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .aft-sw-hero-stat-num {
        font-size: 0.95rem;
    }

    .aft-sw-hero-stat-label {
        font-size: 0.65rem;
    }

    .aft-sw-main {
        padding: 16px 12px 32px;
    }

    .aft-sw-card {
        padding: 12px;
    }

    .aft-sw-card-icon {
        width: 40px;
        height: 40px;
    }

    .aft-sw-card-icon img {
        width: 30px;
        height: 30px;
    }

    .aft-sw-card-name {
        font-size: 0.85rem;
    }

    .aft-sw-pagination-inner {
        gap: 2px;
    }

    .aft-sw-page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.78rem;
        padding: 0 8px;
    }

    .aft-sw-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}