:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.45);
    --accent-primary: #ffffff;
    --accent-secondary: #333333;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --overlay-bg: rgba(255, 255, 255, 0.06);
    --overlay-bg-hover: rgba(255, 255, 255, 0.1);
    --overlay-border: rgba(255, 255, 255, 0.15);
    --active-bg: #ffffff;
    --active-fg: #000000;
    --navbar-bg: rgba(0, 0, 0, 0.35);
    --menu-bg: rgba(16, 16, 18, 0.92);
    --card-radius: 20px;
    --transition: all 0.25s ease;
}

html[data-theme="light"] {
    --bg-color: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: rgba(0, 0, 0, 0.5);
    --accent-primary: #000000;
    --accent-secondary: #e5e5e5;
    --glass-bg: rgba(0, 0, 0, 0.025);
    --glass-border: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.05);
    --overlay-bg-hover: rgba(0, 0, 0, 0.08);
    --overlay-border: rgba(0, 0, 0, 0.15);
    --active-bg: #000000;
    --active-fg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.6);
    --menu-bg: rgba(255, 255, 255, 0.96);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Minimal Dotted Background - Removed */
.dotted-background {
    display: none;
}

/* Tools Section */
.tools-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

.category-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: var(--overlay-bg-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.category-btn.active {
    background: var(--active-bg);
    color: var(--active-fg);
    border-color: var(--active-bg);
}

html[data-theme="light"] .category-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .category-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .category-btn.active {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border-color: rgba(0, 0, 0, 0.9);
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 26px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .tools-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin: -10px -14px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.tool-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tool-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.tool-item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.tool-item-icon-fallback {
    background: rgba(255, 255, 255, 0.05);
}

.tool-item-icon-fallback img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tool-item-icon-initials {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.tool-item-info {
    flex: 1;
    min-width: 0;
}

.tool-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-item-desc {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-item-arrow {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tool-item:hover .tool-item-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* Fade-in animation for tool items */
.tool-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.2s ease;
}

.tool-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.tools-list-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.browse-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 6px 6px 18px;
    border-radius: 999px;
    border: 1px solid var(--overlay-border);
    background: rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.browse-all-link:hover {
    color: var(--text-primary);
    border-color: var(--overlay-border);
    background: rgba(255, 255, 255, 0.12);
}

/* Grid/List view toggle widget (matches reference screenshot) */
.product-grid,
.tools-list {
    transition: opacity 0.16s ease;
}

.view-transitioning.product-grid .product-card,
.view-transitioning.tools-list .tool-item,
.product-grid.view-transitioning .product-card,
.tools-list.view-transitioning .tool-item {
    transition: none !important;
}

.product-grid.view-transitioning,
.tools-list.view-transitioning {
    opacity: 0;
}

.view-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--overlay-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 3px;
    flex-shrink: 0;
}

.view-toggle-indicator {
    position: absolute;
    top: 4px;
    left: 1px;
    width: 30px;
    height: 30px;
    background: var(--active-bg);
    border-radius: 999px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    z-index: 0;
}

html[data-theme="light"] .view-toggle-indicator {
    background: #000;
}

html:not([data-theme="light"]) .view-toggle-indicator {
    background: #fff;
}

.view-toggle-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

html[data-theme="light"] .view-toggle-btn {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .view-toggle-btn.active {
    color: #fff;
}

html:not([data-theme="light"]) .view-toggle-btn {
    color: rgba(255, 255, 255, 0.6);
}

html:not([data-theme="light"]) .view-toggle-btn.active {
    color: #000;
}

.view-toggle-btn:hover {
    color: var(--text-primary);
}

/* Marketplace toolbar: filter tabs + sort (left), categories + view toggle (right) */
.marketplace-toolbar {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--overlay-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 4px;
}

.filter-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 58px;
    height: calc(100% - 8px);
    background: var(--active-bg);
    border-radius: 999px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    z-index: 0;
}

.filter-tab {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    color: var(--active-fg);
}

.dropdown {
    position: relative;
}

.toolbar-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--overlay-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -0.01em;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.toolbar-select:hover {
    border-color: var(--overlay-border);
    background: var(--overlay-bg-hover);
}

.toolbar-select:active {
    transform: scale(0.98);
}

.dropdown-chevron {
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown.open .toolbar-select {
    border-color: var(--overlay-border);
    background: var(--overlay-bg-hover);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: var(--menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top left;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background: var(--overlay-bg-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--active-bg);
    color: var(--active-fg);
    font-weight: 600;
}

/* Collapse the Sign Up label earlier than the full mobile breakpoint —
   once the window gets narrow on desktop the nav starts feeling cramped,
   so shorten to "Sign in" before the hamburger even appears. */
@media (max-width: 768px) {
    .marketplace-toolbar {
        padding: 0 20px 20px;
        justify-content: flex-start;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .toolbar-right {
        justify-content: space-between;
    }
}

.browse-all-arrow-box {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="light"] .browse-all-arrow-box {
    background: #000000;
    color: #ffffff;
}

/* Glow Background Removed */
.glow-container {
    display: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: transparent;
    border-bottom: none;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-start;
    flex: 1;
}

.nav-left img.logo,
.logo img {
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--overlay-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.theme-toggle:hover {
    background: var(--overlay-bg-hover);
}

.theme-toggle svg {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

html[data-theme="light"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-right: 20px;
    color: #ffffff;
    text-decoration: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-nav {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 400;
}

.btn-nav:hover {
    color: var(--text-primary);
}

.btn-nav {
    position: relative;
}

.btn-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-nav:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-hot {
    background: var(--active-bg);
    color: var(--active-fg) !important;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 500;
    gap: 8px;
}

.btn-hot:hover {
    opacity: 0.85;
}

.signup-btn-icon {
    flex-shrink: 0;
}

.signup-btn-text-short {
    display: none;
}

/* Collapse the Sign Up label earlier than the full mobile breakpoint —
   once the window gets narrow on desktop the nav starts feeling cramped,
   so shorten to "Sign in" before the hamburger even appears. Placed after
   the base display:none rule above so it wins the cascade at this width. */
@media (max-width: 1100px) and (min-width: 769px) {
    .signup-btn-text-full {
        display: none;
    }

    .signup-btn-text-short {
        display: inline;
    }

    .nav-right .btn-hot {
        padding: 10px 18px;
    }

    /* Collapsed window layout - show only logo, hamburger, and user/sign-up */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-right {
        gap: 12px;
    }
}

/* Collapse-to-spinner loading state - disabled */

.btn-white {
    background: var(--active-bg);
    color: var(--active-fg) !important;
}

.btn-white:hover {
    opacity: 0.85;
}

.btn-grey {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--overlay-border);
}

.btn-grey:hover {
    background: var(--overlay-bg-hover);
    border-color: var(--overlay-border);
}

.btn-large {
    border-radius: 999px;
    padding: 14px 24px 14px 28px;
    gap: 10px;
}

.btn-large.btn-grey {
    padding: 14px 28px;
    font-weight: 500;
}

.btn-large.btn-white {
    font-weight: 500;
}

.btn-arrow-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: transparent;
    color: var(--active-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-large:hover .btn-arrow-box {
    transform: translateX(3px);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: block;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text-primary);
    max-width: 800px;
    position: relative;
}

.hero-title-break { display: none; }
@media (min-width: 901px) {
    .hero-title-break { display: inline; }
}

.hero-underline {
    position: absolute;
    height: 4px;
    width: 0;
    background: var(--accent-secondary);
    border-radius: 2px;
    left: 0;
    top: 0;
    /* left/top/width are kept in sync with the animated word via JS (ResizeObserver),
       so no CSS transition here — it just always matches the word's live box. */
}

html[data-theme="light"] .hero-underline {
    /* --accent-secondary (#e5e5e5) is too pale to read against a white
       background in light mode — use a slightly darker light-grey instead. */
    background: #b3b3b3;
}

.hero-dot {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-primary);
    line-height: 1;
    /* left/top are kept in sync with the animated word's right edge via JS —
       it never disappears, it just slides with the word. */
}

.animated-word {
    display: inline-flex;
    align-items: baseline;
    vertical-align: baseline;
    position: relative;
    transition: width 0.24s ease; /* lets surrounding text glide smoothly as the word resizes */
}

.animated-word .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
    white-space: pre;
    will-change: transform, opacity, filter;
}

.animated-word .letter.letter-in {
    animation: letterDropIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animated-word .letter.letter-out {
    animation: letterBlurOut 0.15s ease-in forwards;
}

@keyframes letterDropIn {
    0% {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(4px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes letterBlurOut {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-8px);
        filter: blur(6px);
    }
}

.hero-headline {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 56px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
}

@keyframes cursor-blink {
    50% { border-color: transparent; }
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-divider {
    border: 0;
    height: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 40px 0 0 0;
    width: 100%;
    opacity: 1;
}

/* Feature Rows (Alternating) */
.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding: 80px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.row-content {
    flex: 1;
}

.row-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}


.row-title {
    font-size: 40px;
    margin-bottom: 12px;
}

.row-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
}

/* Popular Sections & Product Cards */
.popular-section {
    padding: 40px 40px 100px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 32px;
    text-align: left;
}

.category-buttons-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-buttons-row .category-buttons {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.category-buttons-row .view-toggle {
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    padding: 24px;
    min-height: 180px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* For rounded icon corner Clipping if needed */
}

.product-meta { color: var(--text-secondary); }
.product-author, .product-stars, .product-downloads { color: var(--text-secondary); }
.product-stars svg, .product-downloads svg { color: inherit; }

.external-link-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.product-card:hover .external-link-icon {
    opacity: 1;
    background: var(--overlay-bg-hover);
    color: var(--text-primary);
}

.product-card:hover {
    background: var(--overlay-bg-hover);
    border-color: var(--overlay-border);
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Wrapper used so the card can flip between a stacked "box" layout (desktop)
   and a horizontal "list row" layout (mobile) without duplicating markup. */
.product-info {
    min-width: 0;
}

/* Small leading icon + downloads metric — only surfaced in the mobile list
   layout below; kept out of the desktop box card. */
.product-list-icon {
    display: none;
}

.product-downloads {
    display: none;
}

/* ── Manual view-mode overrides (view toggle button) ─────────────────────
   Applied by main.js. Default on load: mobile → list, desktop → grid.
   Once the user picks one manually it's remembered (localStorage) and wins
   at any screen width. */
.product-grid.view-as-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .product-grid.view-as-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.product-grid.view-as-grid .product-card {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.product-grid.view-as-grid .btn-bookmark {
    display: flex;
}

.product-grid.view-as-grid .product-header {
    display: none;
}

.product-grid.view-as-grid .product-list-icon {
    display: none;
}

.product-grid.view-as-grid .product-info {
    flex: none;
    min-width: 0;
}

.product-grid.view-as-grid .product-name {
    font-size: 18px;
    font-weight: 700;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.product-grid.view-as-grid .product-description {
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 32px;
}

.product-grid.view-as-grid .product-meta {
    justify-content: flex-end;
}

.product-grid.view-as-grid .product-author {
    display: inline-flex;
}

.product-grid.view-as-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-grid.view-as-list .product-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: unset;
    padding: 14px 4px;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.product-grid.view-as-list .product-card:hover {
    background: var(--overlay-bg-hover);
    border-color: var(--glass-border);
    border-radius: 10px;
}

.product-grid.view-as-list .product-card:last-child {
    border-bottom: none;
}

.product-grid.view-as-list .btn-bookmark,
.product-grid.view-as-list .product-header {
    display: none;
}

.product-grid.view-as-list .product-list-icon {
    display: flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.product-grid.view-as-list .product-list-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.product-grid.view-as-list .product-info {
    flex: 1;
    min-width: 0;
}

.product-grid.view-as-list .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-grid.view-as-list .product-description {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-grid.view-as-list .product-meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-grid.view-as-list .product-author {
    display: none;
}

.product-grid.view-as-list .product-stars,
.product-grid.view-as-list .product-downloads {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    white-space: nowrap;
}

/* Homepage list sections ("tool-item" rows) get the same grid-view
   treatment so the toggle also works from the homepage. */
.tools-list.view-as-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 900px) {
    .tools-list.view-as-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tools-list.view-as-grid .tool-item {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    min-height: 180px;
    gap: 0;
    transition: var(--transition);
}

.tools-list.view-as-grid .tool-item:hover {
    background: var(--overlay-bg-hover);
    border-color: var(--overlay-border);
}

.tools-list.view-as-grid .tool-item-content {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.tools-list.view-as-grid .tool-item-icon {
    margin-bottom: 14px;
}

.tools-list.view-as-grid .tool-item-info {
    width: 100%;
}

.tools-list.view-as-grid .tool-item-name {
    font-size: 18px;
    font-weight: 700;
}

.tools-list.view-as-grid .tool-item-desc {
    font-size: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-top: 4px;
}

.tools-list.view-as-grid .tool-item-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
}

.product-footer {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
}

.metric {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric svg {
    opacity: 0.6;
}

/* FAQ Section */
.faq-section {
    padding: 120px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.faq-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-icon {
    font-size: 24px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 32px;
}

/* Premium Footer */
.footer {
    padding: 120px 40px 60px;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 32px;
    text-transform: capitalize;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    font-size: 18px;
}

.footer-socials a:hover {
    color: var(--text-primary);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
}

/* Skills Page Specific Styles */
.skills-page {
    padding-top: 68px;
}

.skills-hero {
    padding-top: 40px;
    padding-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.skills-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 40px 0;
}

.skills-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.skills-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.search-wrapper {
    max-width: 600px;
    width: 100%;
    align-self: flex-start;
}

.search-bar {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: var(--transition);
    height: 44px;
}

html[data-theme="light"] .search-bar {
    background: #f0f0f1;
    border-color: #e2e2e4;
}

html[data-theme="light"] .search-bar:focus-within {
    background: #ececee;
    border-color: #d4d4d7;
}

/* A little extra border definition on the toolbar controls in light mode,
   where the default hairline border reads as almost invisible on white. */
html[data-theme="light"] .view-toggle,
html[data-theme="light"] .filter-tabs,
html[data-theme="light"] .toolbar-select {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Detail page light mode styles */
html[data-theme="light"] .detail-title {
    color: #0a0a0a;
}

html[data-theme="light"] .detail-desc {
    color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .detail-by,
html[data-theme="light"] .detail-author {
    color: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] .detail-by strong {
    color: #0a0a0a;
}

html[data-theme="light"] .btn-download-header {
    background: #000;
    color: #fff;
}

html[data-theme="light"] .btn-download-header:hover {
    background: #1a1a1a;
}

/* Breadcrumb light mode styles */
html[data-theme="light"] .bc-item {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .bc-item:hover {
    color: rgba(0, 0, 0, 0.9);
}

html[data-theme="light"] .bc-current {
    color: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] .bc-sep {
    color: rgba(0, 0, 0, 0.3);
}

/* Tab buttons light mode styles */
html[data-theme="light"] .tab-btn {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .tab-btn:hover {
    color: rgba(0, 0, 0, 0.9);
}

html[data-theme="light"] .tab-btn.active {
    color: #0a0a0a;
    border-bottom-color: #0a0a0a;
}

html[data-theme="light"] .detail-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Browse all links light mode styles */
html[data-theme="light"] .browse-all-link {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .browse-all-arrow-box {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] .browse-all-link:hover {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .browse-all-arrow-box svg {
    stroke: #fff;
}

/* Browse all links dark mode styles */
html[data-theme="dark"] .browse-all-link {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .browse-all-arrow-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .browse-all-arrow-box svg {
    stroke: #fff;
}

.search-bar:focus-within {
    border-color: var(--overlay-border);
    background: var(--overlay-bg);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-bar input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    height: 44px;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}
.search-bar input:-webkit-autofill,
.search-bar input:-webkit-autofill:hover,
.search-bar input:-webkit-autofill:focus,
.search-bar input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-color) inset;
    box-shadow: 0 0 0px 1000px var(--bg-color) inset;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: var(--text-primary);
}

/* Advanced Search Interactions & Fading */
.fade-transition {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.element-hidden {
    display: none !important;
}

.results-count {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.results-count.visible {
    opacity: 1;
    height: auto;
    margin-bottom: 24px;
}

/* Ensure smooth card transitions */
.product-card {
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease, border 0.25s ease;
}

.product-card.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    display: none !important; /* still need display none to avoid grid spacing issues if not using a more complex layout */
}

/* Let's refine the hiding without breaking grid layout if possible, 
   but for now display none is safest for cards. 
   We will manage the transition in JS. */

/* Premium Animation System */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title, .hero-headline, .hero-actions {
    opacity: 0;
    transform: translateY(30px);
}

.hero-animate .hero-title {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate .hero-headline {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-animate .hero-actions {
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}


/* Advanced Word-by-Word Unveil */
.unveil-text {
    opacity: 1 !important; /* Ensure the container is visible */
    display: inline-block;
}

.unveil-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1), transform 0.22s cubic-bezier(0.16,1,0.3,1);
    margin-right: 0.25em; /* Space between words */
}

.unveiled .unveil-word {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Reveal Utilities — rise up + fade in, premium easing */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ items rise up too, same premium feel */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ── Auth Modal ───────────────────────────────────────────────────────────── */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

html[data-theme="light"] .auth-modal-overlay {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: rgba(17, 17, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 400px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .auth-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.auth-modal-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

/* Custom scrollbar for auth modal */
.auth-modal::-webkit-scrollbar {
    width: 6px;
}
.auth-modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.auth-modal-close:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

html[data-theme="light"] .auth-modal-close {
    color: rgba(0,0,0,0.4);
}

html[data-theme="light"] .auth-modal-close:hover {
    background: rgba(0,0,0,0.05);
    color: #000;
}

.auth-modal-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    position: absolute;
    top: 16px;
    left: 16px;
}

.auth-modal-brand img {
    filter: brightness(0) invert(1);
}

html[data-theme="light"] .auth-modal-brand img {
    filter: brightness(0);
}

.auth-modal h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 10px;
    margin-top: 50px;
}

html[data-theme="light"] .auth-modal h2 {
    color: #000000;
}

.auth-modal-sub {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 36px;
}

html[data-theme="light"] .auth-modal-sub {
    color: rgba(0, 0, 0, 0.5);
}

.btn-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-github:hover {
    background: #ebebeb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

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

html[data-theme="light"] .btn-github {
    background: #000000;
    color: #ffffff;
}

html[data-theme="light"] .btn-github:hover {
    background: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.auth-modal-terms {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
    text-align: center;
    line-height: 1.7;
}

.auth-modal-terms a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.auth-modal-terms a:hover { color: #fff; }

html[data-theme="light"] .auth-modal-terms {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .auth-modal-terms a {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .auth-modal-terms a:hover {
    color: #000;
}

/* ── Navbar User Info (logged-in state) ───────────────────────────────────── */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: scale(0.92) translateY(2px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-user.nav-user-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.18);
    object-fit: cover;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-user-logout {
    font-size: 12px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.nav-user-logout:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.07);
}

.hidden { display: none !important; }

/* ── Nav User Dropdown ────────────────────────────────────────────────────── */
.nav-user { position: relative; display: flex; align-items: center; }

.nav-user-trigger {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    color: var(--text-primary); padding: 4px 6px;
    border-radius: 8px; transition: background 0.2s;
}
.nav-user-trigger:hover { background: rgba(255,255,255,0.06); }
.nav-user-trigger svg { opacity: 0.5; transition: transform 0.2s; }
.nav-user-trigger:has(+ .nav-dropdown.open) svg { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: #131315;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 14px; padding: 6px; min-width: 180px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s cubic-bezier(0.16,1,0.3,1),
                transform 0.22s cubic-bezier(0.16,1,0.3,1),
                visibility 0.22s;
    z-index: 200;
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 9px; width: 100%;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.72);
    text-decoration: none; cursor: pointer;
    background: none; border: none; font-family: 'Inter', sans-serif;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    opacity: 0; transform: translateX(-4px);
    animation: navDropdownItemIn 0.25s cubic-bezier(0.16,1,0.3,1) forwards;
}
.nav-dropdown.open .nav-dropdown-item:nth-child(1) { animation-delay: 0.02s; }
.nav-dropdown.open .nav-dropdown-item:nth-child(2) { animation-delay: 0.05s; }
.nav-dropdown.open .nav-dropdown-item:nth-child(3) { animation-delay: 0.08s; }
.nav-dropdown.open .nav-dropdown-item:nth-child(4) { animation-delay: 0.11s; }
.nav-dropdown.open .nav-dropdown-item:nth-child(5) { animation-delay: 0.14s; }
@keyframes navDropdownItemIn { to { opacity: 1; transform: translateX(0); } }
.nav-dropdown-item svg { opacity: 0.65; transition: opacity 0.15s ease, transform 0.15s ease; flex-shrink: 0; }
.nav-dropdown-item:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(2px); }
.nav-dropdown-item:hover svg { opacity: 1; }
.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 5px 4px; }
.nav-dropdown-logout { color: rgba(248,113,113,0.75); }
.nav-dropdown-logout:hover { color: #f87171; background: rgba(248,113,113,0.1); }

/* Light theme — premium, crisp, well-lifted card */
html[data-theme="light"] .nav-dropdown {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 14px 36px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
}
html[data-theme="light"] .nav-dropdown-item { color: rgba(0,0,0,0.68); }
html[data-theme="light"] .nav-dropdown-item:hover { background: rgba(0,0,0,0.05); color: #000; }
html[data-theme="light"] .nav-dropdown-divider { background: rgba(0,0,0,0.08); }
html[data-theme="light"] .nav-dropdown-logout { color: rgba(220,38,38,0.75); }
html[data-theme="light"] .nav-dropdown-logout:hover { color: #dc2626; background: rgba(220,38,38,0.08); }

/* ── Detail Page ──────────────────────────────────────────────────────────── */
.detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 40px 100px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; margin-bottom: 32px;
}
.bc-item { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.bc-item:hover { color: rgba(255,255,255,0.8); }
.bc-current { color: rgba(255,255,255,0.75); }
.bc-sep { color: rgba(255,255,255,0.2); font-size: 15px; }

/* Header */
.detail-header { margin-bottom: 28px; }

.detail-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 44px; font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.1;
    color: #fff; margin-bottom: 16px;
}

.detail-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.detail-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
}
.detail-by { font-size: 13px; color: rgba(255,255,255,0.5); }
.detail-by strong { color: rgba(255,255,255,0.75); font-weight: 500; }
.meta-dot { color: rgba(255,255,255,0.2); font-size: 16px; }

.meta-stars {
    display: flex; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: rgba(255,255,255,0.5);
    transition: color 0.2s; padding: 0; font-family: inherit;
}
.meta-stars svg { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.meta-stars:hover, .meta-stars.starred { color: #fbbf24; }
.meta-stars.starred svg, .meta-stars:hover svg { color: #fbbf24; }

.meta-share {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.35); padding: 0;
    transition: color 0.2s; display: flex; align-items: center;
}
.meta-share:hover { color: #fff; }

.detail-desc {
    font-size: 16px; color: rgba(255,255,255,0.5);
    line-height: 1.7; max-width: 680px; margin-top: 4px;
    margin-bottom: 24px;
}

.btn-download-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-header:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.dl-badge {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* Tabs */
.detail-tabs {
    display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}

.detail-versions-section {
    margin-top: 32px;
}

.detail-versions-section .tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 16px;
}

.detail-versions-section .tab-btn:hover {
    background: rgba(255,255,255,0.1);
}
.tab-btn {
    background: none; border: none; cursor: pointer;
    padding: 10px 18px; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.4); font-family: 'Inter', sans-serif;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: rgba(255,255,255,0.75); }
.tab-btn.active { color: #fff; border-bottom-color: #fff; }

/* Tab content */
.tab-panel { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

.about-para { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 20px; }
.about-features { margin: 24px 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 20px 24px; }
.about-features-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.feature-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 10px; line-height: 1.5; }
.feature-bullet { color: rgba(255,255,255,0.2); flex-shrink: 0; margin-top: 1px; }

.readme-content { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.readme-h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 16px; letter-spacing: -0.02em; }
.readme-h3 { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.8); margin: 20px 0 10px; }

[data-theme="light"] .readme-content { color: #1a1a1a; }
[data-theme="light"] .readme-h2 { color: #000; }
[data-theme="light"] .readme-h3 { color: #333; }
[data-theme="light"] .code-block { background: #f5f5f5; border: 1px solid rgba(0,0,0,0.1); color: #333; }
.readme-p { margin-bottom: 12px; }
.code-block {
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 16px 20px; margin: 16px 0;
    overflow-x: auto; font-family: 'JetBrains Mono', monospace;
    font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.6;
}

.detail-faq { border-radius: 10px; margin-bottom: 2px; }

/* Sidebar */
.sidebar-help {
    font-size: 12px; color: rgba(255,255,255,0.3);
    margin-bottom: 16px; display: flex; gap: 6px; align-items: center;
}
.sidebar-help a { color: rgba(255,255,255,0.4); text-decoration: none; }
.sidebar-help a:hover { color: rgba(255,255,255,0.75); }

.security-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 10px 14px;
    font-size: 13px; color: rgba(255,255,255,0.55);
    margin-bottom: 0;
}
.security-ok { margin-left: auto; color: #4ade80; font-size: 12px; font-weight: 600; }

.sidebar-hr { border: 0; border-top: 1px solid rgba(255,255,255,0.07); margin: 16px 0; }

.install-section { padding: 2px 0 4px; }
.install-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 10px; font-weight: 500; }
.install-label strong { color: rgba(255,255,255,0.65); }
.install-cmd-row {
    display: flex; align-items: center;
    background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 10px 14px; gap: 8px;
}
.install-cmd {
    flex: 1; font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: rgba(255,255,255,0.65);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.3); flex-shrink: 0;
    padding: 0; display: flex; transition: color 0.2s;
}
.copy-btn:hover { color: #fff; }

.btn-download {
    width: 100%; padding: 11px 16px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; color: rgba(255,255,255,0.75);
    font-size: 14px; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-family: 'Inter', sans-serif; transition: all 0.2s;
    justify-content: center;
}
.btn-download:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }
.btn-download .btn-count { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.35); }

.action-row { display: flex; gap: 10px; }

.btn-like {
    flex: 1; padding: 10px 14px;
    background: #fff; border: 1px solid #fff;
    border-radius: 10px; color: #000;
    font-size: 13px; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; gap: 7px;
    font-family: 'Inter', sans-serif; transition: all 0.2s;
    justify-content: center;
}
.btn-like svg { stroke: #000; fill: none; transition: fill 0.2s, stroke 0.2s; }
.btn-like:hover { background: #e5e5e5; border-color: #e5e5e5; }
.btn-like.liked { background: #fff; border-color: #fbbf24; }
.btn-like.liked svg { stroke: #fbbf24; fill: #fbbf24; }
.btn-like .btn-count { font-size: 12px; color: #555; background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 6px; margin-left: auto;}

.btn-report {
    padding: 10px 14px;
    background: #fff; border: 1px solid #fff;
    border-radius: 10px; color: #000;
    font-size: 13px; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; gap: 7px;
    font-family: 'Inter', sans-serif; transition: all 0.2s;
}
.btn-report svg { stroke: #000; fill: none; }
.btn-report:hover { background: #e5e5e5; }

/* Report modal options */
.report-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.report-option {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: rgba(255,255,255,0.6);
    cursor: pointer; padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.07); border-radius: 10px;
    transition: all 0.15s;
}
.report-option:hover { border-color: rgba(255,255,255,0.15); color: #fff; }
.report-option input { accent-color: #fff; }

/* Toast notification */
.toast {
    position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(16px);
    background: #111; border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8); padding: 12px 24px;
    border-radius: 10px; font-size: 14px; z-index: 2000;
    opacity: 0; transition: all 0.3s ease; pointer-events: none;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Detail Header Revised */
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.detail-title-row .detail-title { margin-bottom: 0; }
.btn-download-header {
    background: #fff; color: #000; border: none; border-radius: 10px;
    padding: 10px 16px; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
.btn-download-header:hover { background: #e5e5e5; transform: translateY(-1px); }
.dl-badge { background: rgba(0,0,0,0.1); padding: 2px 6px; border-radius: 6px; font-size: 12px; margin-left: 4px; }

/* Tab Animations */
.tab-panels-wrap { position: relative; overflow: hidden; min-height: 400px; }
.tab-panel {
    width: 100%; position: absolute; top: 0; left: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-panel.active-panel { position: relative; opacity: 1; transform: translateX(0); }
.slide-in-right { animation: slideInRight 0.25s forwards; }
.slide-in-left { animation: slideInLeft 0.25s forwards; }
.slide-out-left { animation: slideOutLeft 0.25s forwards; }
.slide-out-right { animation: slideOutRight 0.25s forwards; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutLeft { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-40px); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* Publish Style & Modal */
.pub-cat-group { display: flex; gap: 10px; margin-bottom: 20px; }
.pub-cat-btn { 
    flex: 1; padding: 12px; background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; 
    color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; font-family: 'Inter', sans-serif;
}
.pub-cat-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.pub-cat-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.pub-cat-btn.selected { background: #fff; color: #000; border-color: #fff; }

.btn-publish {
    background: #fff; border: 1px solid #fff;
    color: #000; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; font-family: 'Inter', sans-serif;
    margin-right: 8px;
}
.btn-publish:hover { background: #e5e5e5; }

.btn-github:disabled { opacity: 0.3 !important; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.file-drop-zone.dragover { border-color: #fff; background: rgba(255,255,255,0.08); }
.file-drop-zone.has-file { border-color: #fbbf24; background: rgba(251,191,36,0.05); }
.btn-publish:hover { background: #e5e5e5; }

.publish-input {
    width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
    font-family: inherit;
}
.publish-input:focus { outline: none; border-color: rgba(255,255,255,0.3); }
.file-drop-zone {
    border: 1px dashed rgba(255,255,255,0.2); border-radius: 12px;
    padding: 30px; text-align: center; color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.01); margin-bottom: 24px; cursor: pointer; transition: all 0.2s;
}
.file-drop-zone:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.03); }
.drop-icon { margin-bottom: 10px; color: rgba(255,255,255,0.8); }
.license-box {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 16px; margin-bottom: 24px;
}
.license-box select, .license-box textarea { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-radius: 6px; padding: 10px; font-family: inherit; margin: 10px 0; }
.license-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; cursor: pointer;}
.license-check input { margin-top: 3px; accent-color: #fff; }

.btn-bookmark { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.5); transition: all 0.2s; z-index: 10;}
.btn-bookmark:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Mobile Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-nav-extra {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

html[data-theme="light"] .hamburger-line {
    background: #000000;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger-line:nth-child(2) {
    margin-bottom: 5px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 36px;
        left: 0;
        right: 0;
        height: calc(100vh - 36px);
        height: calc(100dvh - 36px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-color);
        padding: 12px 20px 24px;
        gap: 0;
        border-bottom: none;
        transform: translateY(-12px);
        opacity: 0;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 150;
        pointer-events: none;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links .btn-nav,
    .nav-links button:not(.mobile-nav-cta) {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 20px 4px;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-family: 'Inter', sans-serif;
        font-size: 19px;
        font-weight: 500;
        letter-spacing: -0.01em;
        color: var(--text-primary);
    }

    .nav-links .btn-nav::after {
        display: none;
    }

    .nav-links .btn-nav:last-child,
    .nav-links button:not(.mobile-nav-cta):last-child {
        border-bottom: none;
    }

    /* Extra mobile-only CTA + footer, injected by main.js, pinned to the
       bottom of the menu — mirrors the reference design's "Try for free"
       button + footer links. Hidden entirely on desktop. */
    .mobile-nav-extra {
        margin-top: auto;
        padding-top: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .mobile-nav-extra .mobile-nav-cta {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-bottom: none;
        border-radius: 999px;
        padding: 15px;
        font-size: 15px;
        font-weight: 700;
    }

    .mobile-nav-footer {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: var(--text-secondary);
    }

    .mobile-nav-footer a {
        color: inherit;
        text-decoration: none;
    }

    .mobile-nav-footer a:hover {
        color: var(--text-primary);
    }

    .hamburger {
        display: flex;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-right .btn-hot {
        display: inline-flex;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 999px;
        gap: 6px;
    }

    .signup-btn-text-full {
        display: none;
    }

    .signup-btn-text-short {
        display: inline;
    }

    .nav-right .btn-publish {
        display: none;
    }

    .nav-right .nav-user {
        display: none;
    }
    
    /* Always show hamburger menu regardless of login state */
    .hamburger {
        display: flex !important;
    }

    /* Hero Section Responsive */
    .hero-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .hero-headline {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 24px !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn {
        flex: 0 0 auto;
        width: auto;
        padding: 12px 20px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Tools Section Responsive */
    .tools-section {
        padding: 24px 20px 40px;
    }

    .tools-list {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 16px;
    }

    .category-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Featured Sections Responsive */
    .featured-section {
        padding: 24px 20px 40px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .unveil-text {
        font-size: 13px;
    }

    .tools-list-footer {
        padding: 16px 20px;
    }

    /* Product grid mobile/desktop layout is now controlled by the
       .view-as-list / .view-as-grid classes (see base rules), applied by
       main.js's view-toggle so it can be switched manually and persisted.
       Defaults: mobile starts as list, desktop starts as grid. */

    /* Skills/Tools/Plugins/MCP Pages Responsive */
    .skills-page {
        padding-top: 40px;
    }

    .skills-hero {
        padding: 24px 20px;
    }

    .skills-title {
        font-size: 28px;
    }

    .search-bar {
        padding: 12px 16px;
    }

    .search-bar input {
        font-size: 14px;
    }

    .popular-section {
        padding: 24px 20px 40px;
    }

    /* Footer Responsive */
    .footer-container {
        padding: 40px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Detail Page Responsive */
    .detail-page {
        padding: 70px 16px 60px;
    }

    .breadcrumb {
        padding: 16px 0;
    }

    .detail-header {
        padding: 24px 0;
    }

    .detail-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .detail-meta {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .detail-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-download-header {
        width: auto;
        justify-content: center;
        padding: 12px 32px;
        margin-left: 0;
    }

    .detail-tabs {
        flex-wrap: nowrap;
        gap: 0;
    }

    .tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 18px;
        font-size: 13px;
        text-align: center;
        white-space: nowrap;
    }

    .detail-versions-section {
        margin-top: 20px;
    }

    .detail-versions-section .tab-btn {
        padding: 10px 14px;
        display: inline-flex;
        width: auto;
    }

    .tab-panels {
        padding: 20px;
    }

    /* Navbar Responsive */
    .navbar {
        padding: 16px 0;
        border-bottom: none;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo img {
        height: 42px !important;
    }

    .hamburger {
        margin-left: 8px;
        margin-right: 6px;
    }

    /* Skills/Tools/Plugins/MCP header container - remove the extra
       desktop side padding so the title and search bar sit flush
       with the section padding instead of appearing pushed right */
    .skills-container {
        padding: 0;
    }
}
.btn-bookmark.saved { color: #fff; fill: currentColor; }
html[data-theme="light"] .btn-bookmark.saved { color: #0a0a0b; }