/* --- Core Design Tokens --- */
:root {
    --bg-base: #060913;
    --bg-surface: #0f1322;
    --bg-surface-elevated: #1a1f35;
    --bg-glass: rgba(15, 19, 34, 0.7);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.12);
    
    --primary: #00c05b;
    --primary-hover: #1bd964;
    --primary-glow: rgba(0, 192, 91, 0.35);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width: 1440px;
}

/* --- Base Resets & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* --- Sticky Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

.site-header .container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary-glow);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #10b981);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 192, 91, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* --- Common Components (Buttons, Badges) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 16px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-hover);
    transform: translateY(-1px);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-glass-hover);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.badge-mod { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.2); }
.badge-plugin { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168, 85, 247, 0.2); }
.badge-resourcepack { background: rgba(234, 179, 8, 0.15); color: #facc15; border-color: rgba(234, 179, 8, 0.2); }
.badge-datapack { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: rgba(249, 115, 22, 0.2); }
.badge-shader { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border-color: rgba(20, 184, 166, 0.2); }
.badge-modpack { background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236, 72, 153, 0.2); }
.badge-server { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.2); }

.badge-loader {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.badge-version {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.7rem;
}

/* --- Hero Section (Homepage) --- */
.hero {
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at 50% -20%, rgba(0, 192, 91, 0.15), transparent 60%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 40%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.search-box-container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
}

.search-box-container:focus-within {
    border-color: rgba(0, 192, 91, 0.5);
    box-shadow: 0 0 25px rgba(0, 192, 91, 0.2), var(--shadow-lg);
}

.search-box-form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 0 2rem;
    background-color: var(--primary);
    color: #040815;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

/* --- Stats Row --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3.5rem;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 2.25rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 192, 91, 0.25);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- Section Layout --- */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.section-title-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* --- Category Cards --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2rem;
}

@media (min-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 768px) and (max-width: 1099px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .category-card {
        padding: 1.25rem 0.75rem;
    }
}

.category-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 192, 91, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.category-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.category-card:hover .category-icon {
    transform: scale(1.25);
}

.icon-inner {
    display: inline-block;
    transform-origin: center;
    transition: filter 0.3s ease;
}

/* 1. Gear (Mods) Animation */
.icon-gear {
    animation: spin 12s linear infinite;
}
.category-card:hover .icon-gear {
    animation: spin 2.5s linear infinite;
}

/* 2. Plug (Plugins) Animation */
.icon-plug {
    animation: float-plug 3s ease-in-out infinite;
}
.category-card:hover .icon-plug {
    animation: float-plug-hover 0.8s ease-in-out infinite;
}

/* 3. Palette (Resource Packs) Animation */
.icon-palette {
    animation: wobble-palette 4s ease-in-out infinite;
}
.category-card:hover .icon-palette {
    animation: wobble-palette-hover 0.8s ease-in-out infinite;
}

/* 4. Sun (Shaders) Animation */
.icon-sun {
    animation: pulse-sun 3s ease-in-out infinite;
}
.category-card:hover .icon-sun {
    animation: pulse-sun-hover 4s linear infinite;
}

/* 5. Package (Data Packs) Animation */
.icon-package {
    animation: float-package 3.5s ease-in-out infinite;
}
.category-card:hover .icon-package {
    animation: bounce-package 0.6s ease-in-out infinite alternate;
}

/* 6. Backpack (Modpacks) Animation */
.icon-backpack {
    animation: sway-backpack 4s ease-in-out infinite;
}
.category-card:hover .icon-backpack {
    animation: sway-backpack-hover 0.8s ease-in-out infinite;
}

/* Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-plug {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-3deg); }
}

@keyframes float-plug-hover {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-18deg); }
}

@keyframes wobble-palette {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

@keyframes wobble-palette-hover {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-14deg) translateY(-2px); }
    40% { transform: rotate(10deg) translateY(1px); }
    60% { transform: rotate(-8deg) translateY(-1px); }
    80% { transform: rotate(6deg) translateY(0); }
}

@keyframes pulse-sun {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(245, 158, 11, 0)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45)); }
}

@keyframes pulse-sun-hover {
    0% { transform: rotate(0deg); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.85)); }
    100% { transform: rotate(360deg); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.85)); }
}

@keyframes float-package {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes bounce-package {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-5px) scale(1.12); }
}

@keyframes sway-backpack {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

@keyframes sway-backpack-hover {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    25% { transform: rotate(-8deg) scale(1.12); }
    75% { transform: rotate(8deg) scale(1.12); }
}

/* --- Inline & Action Icon Animations --- */
.icon-inline {
    display: inline-block;
    vertical-align: middle;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.icon-svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    transform-origin: center;
    color: currentColor;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    position: relative;
    top: -1px; /* perfect vertical alignment */
}

/* 1. Stat download SVG - wiggles gently on card hover */
.project-card:hover .icon-stat-download,
.shader-grid-card:hover .icon-stat-download,
.project-stat:hover .icon-stat-download {
    animation: inline-bob 0.8s ease-in-out infinite;
}

/* 2. Stat star SVG - pulses on card hover */
.project-card:hover .icon-stat-star,
.shader-grid-card:hover .icon-stat-star,
.project-stat:hover .icon-stat-star,
#follow-btn:hover .follow-icon {
    animation: inline-star-pulse 0.8s ease-in-out infinite;
}

/* 3. Stat time SVG - tilts on hover */
.project-card:hover .icon-stat-time,
.shader-meta-stat:hover .icon-stat-time {
    animation: inline-time-tilt 1.5s ease-in-out infinite;
}

/* 4. Action download buttons SVG - bobs continuously on button hover */
.btn-primary:hover .icon-download-btn,
.btn-secondary:hover .icon-download-btn,
.version-download-btn:hover .icon-download-btn {
    animation: btn-download-bob 0.6s ease-in-out infinite;
}

/* Keyframes for inline/action animations */
@keyframes inline-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@keyframes inline-star-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); color: #fbbf24; }
    50% { transform: scale(1.22) rotate(15deg); color: #fbbf24; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6)); }
}

@keyframes inline-time-tilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes btn-download-bob {
    0%, 100% { transform: translateY(0) scale(1.05); }
    50% { transform: translateY(-4px) scale(1.05); }
}


.category-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Project Grid / Cards --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

/* --- Modrinth Style Project Card --- */
.project-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.45rem 1.85rem;
    display: flex;
    gap: 1.75rem;
    align-items: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    width: 100%;
}

/* --- Dedicated Grid Card Mode (Used in Trending & Most Popular grids) --- */
.project-grid .project-card {
    display: grid !important;
    grid-template-columns: 76px 1fr !important;
    gap: 0.75rem 0.95rem !important;
    padding: 1.2rem 1.35rem !important;
    align-items: start !important;
}

.project-grid .project-card-left {
    grid-column: 1;
    grid-row: 1;
}

.project-grid .project-card-left .project-icon {
    width: 76px !important;
    height: 76px !important;
    border-radius: var(--radius-md) !important;
    flex-shrink: 0;
}

.project-grid .project-card-middle {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.project-grid .project-card-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    width: 100%;
}

.project-grid .project-card-title {
    font-size: 1.1rem !important;
    font-weight: 700;
    max-width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-grid .project-card-author {
    font-size: 0.8rem !important;
    color: var(--text-muted);
}

.project-grid .project-card-summary {
    font-size: 0.85rem !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.project-grid .project-card-badges-row {
    margin-top: 0.35rem;
    gap: 0.3rem;
}

.project-grid .project-card-right {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 0 !important;
    border-top: 1px solid var(--border-glass) !important;
    padding-top: 0.6rem !important;
    margin-top: 0.2rem !important;
}

.project-grid .project-card-stats-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.project-grid .project-card-stat {
    font-size: 0.82rem !important;
    gap: 0.2rem;
}

.project-grid .project-card-updated {
    font-size: 0.76rem !important;
    color: var(--text-muted);
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 192, 91, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background-color: var(--bg-surface-elevated);
}

.project-card-left {
    flex-shrink: 0;
}

.project-card-left .project-icon {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
}

.project-card-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.project-card-header-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
    width: 100%;
    flex-wrap: wrap;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card:hover .project-card-title {
    text-decoration: underline;
    color: #ffffff;
}

.project-card-author {
    font-size: 0.88rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.project-card-summary {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-badges-row {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.1rem;
}

.project-card .badge-loader-color,
.project-card .badge-meta {
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
}

.badge-icon {
    font-size: 0.85rem;
    margin-right: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}

.badge-icon-svg {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
    stroke-width: 2.2;
    fill: none;
    color: currentColor;
    position: relative;
    top: -1px;
}

/* Custom styled loaders like in screenshot */
.badge-loader-color {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-loader-fabric {
    background: rgba(220, 180, 140, 0.08) !important;
    color: #e2b48c !important;
    border-color: rgba(220, 180, 140, 0.15) !important;
}

.badge-loader-forge {
    background: rgba(233, 116, 81, 0.08) !important;
    color: #e97451 !important;
    border-color: rgba(233, 116, 81, 0.15) !important;
}

.badge-loader-neoforge {
    background: rgba(244, 164, 96, 0.08) !important;
    color: #f4a460 !important;
    border-color: rgba(244, 164, 96, 0.15) !important;
}

.badge-loader-quilt {
    background: rgba(186, 85, 211, 0.08) !important;
    color: #ba55d3 !important;
    border-color: rgba(186, 85, 211, 0.15) !important;
}

.badge-meta {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    padding-left: 0.5rem;
}

.project-card-stats-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.project-card-stat {
    font-size: 1.02rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.project-card-updated {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

/* --- Horizontal Project Types Menu --- */
.project-types-menu {
    display: flex;
    align-items: center;
    background-color: rgba(15, 19, 34, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.35rem;
    gap: 0.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.project-types-menu::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.type-menu-item {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.55rem 1.35rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.type-menu-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.type-menu-item.active {
    color: #00c05b !important;
    background-color: rgba(0, 192, 91, 0.12);
    border: 1px solid rgba(0, 192, 91, 0.2);
    box-shadow: 0 4px 15px rgba(0, 192, 91, 0.06);
}

/* --- Browse & Filtering Page Layout --- */
.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding: 0.4rem 0 1rem 0;
}

.filter-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: 90px;
}

.filter-section {
    margin-bottom: 1.75rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
    margin-left: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

/* Customize sidebar scrollbar */
.filter-options::-webkit-scrollbar {
    width: 5px;
}
.filter-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
}
.filter-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
.filter-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 192, 91, 0.3);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border: 1px solid transparent;
}

.filter-label:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
    padding-left: 0.65rem;
}

.filter-label:has(input:checked) {
    color: #00c05b;
    background-color: rgba(0, 192, 91, 0.04);
}

.filter-checkbox, .filter-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox:hover, .filter-radio:hover {
    border-color: rgba(0, 192, 91, 0.5);
    box-shadow: 0 0 6px rgba(0, 192, 91, 0.15);
}

.filter-radio {
    border-radius: var(--radius-full);
}

.filter-checkbox:checked, .filter-radio:checked {
    background-color: #00c05b;
    border-color: #00c05b;
    box-shadow: 0 0 8px rgba(0, 192, 91, 0.4);
}

.filter-checkbox::after {
    content: '';
    width: 4px;
    height: 8px;
    border: 2px solid transparent;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s cubic-bezier(0.12, 0.4, 0.29, 1.46);
    transform-origin: center;
    margin-top: -2px;
}

.filter-checkbox:checked::after {
    border-color: #040815;
    transform: rotate(45deg) scale(1);
}

.filter-radio:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #040815;
    border-radius: var(--radius-full);
}

.browse-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.browse-toolbar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sort-select {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 1.5rem 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

/* --- Project Detail Page CSS --- */
.project-header-panel {
    background: radial-gradient(circle at 10% 20%, rgba(0, 192, 91, 0.08), transparent 45%);
    border-bottom: 1px solid var(--border-glass);
    padding: 3rem 0;
}

.project-header-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-header-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-surface-elevated);
    border: 1.5px solid var(--border-glass-hover);
}

.project-header-details {
    flex: 1;
}

.project-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-breadcrumbs a:hover {
    color: var(--primary);
}

.project-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.project-header-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.project-header-meta span a {
    color: var(--primary);
    font-weight: 500;
}

.project-header-meta span a:hover {
    text-decoration: underline;
}

.project-header-actions {
    display: flex;
    gap: 0.75rem;
    align-self: center;
}

/* Project Detail Columns */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    padding: 3rem 0;
}

/* Tabs System */
.tabs-header {
    display: inline-flex;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.3rem;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.tab-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    user-select: none;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #ffffff;
    background-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 192, 91, 0.25);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Description Rich Text Styling */
.description-body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.description-body > *:first-child {
    margin-top: 0 !important;
}

.description-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    display: block;
}

.description-body h2, .description-body h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.description-body p {
    margin-bottom: 1.25rem;
}

.description-body ul, .description-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.description-body li {
    margin-bottom: 0.5rem;
}

.description-body code {
    background-color: var(--bg-surface-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: monospace;
}

/* Version List Styling */
.version-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.version-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.version-item:hover {
    border-color: var(--border-glass-hover);
    background-color: var(--bg-surface-elevated);
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.version-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.version-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.version-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.version-type-release { background: rgba(0, 192, 91, 0.15); color: var(--primary); }
.version-type-beta { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.version-type-alpha { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.version-meta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.version-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.version-download-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Project Sidebar Metadata */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sidebar-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-box-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

.metadata-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.9rem;
}

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

.metadata-label {
    color: var(--text-muted);
}

.metadata-value {
    font-weight: 500;
    color: var(--text-primary);
}

.external-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

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

/* --- Form / Upload CSS --- */
.form-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 800px;
    margin: 3rem auto;
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 192, 91, 0.15);
}

.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    background-color: var(--bg-surface-elevated);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Mobile Navigation Hamburger Button --- */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    outline: none;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-main, #ffffff);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--primary, #00c05b);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--primary, #00c05b);
}

/* Mobile Nav Drawer Backdrop */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
}

body.mobile-menu-open {
    overflow: hidden !important;
}

.mobile-drawer-actions {
    display: none;
}

/* --- Comprehensive Responsive Adjustments --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 1024px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static;
    }
    .project-detail-layout {
        grid-template-columns: 1fr;
    }
    .project-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100% !important;
    }
    
    .project-grid {
        grid-template-columns: 1fr !important;
    }

    .shader-grid-container {
        grid-template-columns: 1fr !important;
    }

    /* Browse Page Mobile Layout Optimization */
    .browse-layout {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .sidebar-column, 
    .sidebar-top-ad-block,
    .filter-sidebar,
    .sidebar-ad-card {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    .browse-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        text-align: center !important;
    }

    .sort-select-wrapper {
        justify-content: space-between !important;
        width: 100% !important;
    }

    .sort-select {
        flex: 1 !important;
        text-align: right !important;
    }

    form[action="browse.php"].flex {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.6rem !important;
    }

    form[action="browse.php"].flex input[type="text"] {
        width: 100% !important;
    }

    form[action="browse.php"].flex button[type="submit"] {
        width: 100% !important;
        padding: 0.75rem 0 !important;
    }

    .pagination-container {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
    }

    .pagination-item {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    img, table, pre, code, iframe, input, select, textarea {
        max-width: 100% !important;
    }
    
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(11, 15, 25, 0.94);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border-glass);
    }
    
    .site-header .container {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        height: 62px;
        padding: 0 1rem !important;
        gap: 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    /* Off-canvas Mobile Drawer */
    .nav-links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 15, 25, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        padding: 1.25rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        z-index: 999;
        display: flex;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.85rem 1.15rem;
        font-size: 0.95rem;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-dropdown-container {
        width: 100%;
    }

    .nav-dropdown-trigger {
        width: 100%;
        padding: 0.85rem 1.15rem;
        font-size: 0.95rem;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.06);
        margin-top: 0.5rem;
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0.5rem;
    }

    .nav-dropdown-menu.active {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .header-actions {
        display: none !important;
    }

    .mobile-drawer-actions {
        display: flex !important;
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px dashed rgba(255, 255, 255, 0.12);
    }

    /* Horizontal Category Swipe Menu */
    .project-types-menu {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        margin-bottom: 1.25rem;
        scrollbar-width: none; /* Firefox */
        gap: 0.5rem;
        width: 100%;
    }

    .project-types-menu::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .type-menu-item {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 0.55rem 0.95rem;
        font-size: 0.82rem;
    }

    /* Hero section */
    .hero {
        padding: 2.5rem 1rem 1.75rem 1rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-search-box {
        width: 100%;
        max-width: 100%;
    }

    /* Stats row */
    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .stat-item {
        padding: 0.85rem;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    /* Project Detail Headers & Tabs */
    .project-header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .project-header-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tabs-header {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 1px solid var(--border-glass);
        gap: 0.25rem;
        width: 100%;
    }

    .tabs-header::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.65rem 0.95rem;
        font-size: 0.82rem;
    }

    /* Shaders Grid Mobile */
    .shader-grid-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .shader-grid-card {
        height: auto;
    }

    .shader-cover-image {
        height: 200px;
    }

    /* Tables Mobile Touch Scroll */
    .table-responsive,
    .versions-list,
    .admin-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer Responsive */
    .site-footer {
        padding: 1.75rem 0 1.5rem !important;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem !important;
        margin-bottom: 1.25rem !important;
        text-align: center;
    }

    .footer-brand {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand h3 {
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    .footer-brand p {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 320px !important;
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
    }

    .footer-cols-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        text-align: left !important;
        width: 100% !important;
        margin-top: 0.25rem !important;
    }

    .footer-cols-group .footer-col h4 {
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        margin-bottom: 0.85rem !important;
        text-align: left !important;
        color: #fff !important;
    }

    .footer-cols-group .footer-links {
        align-items: flex-start !important;
        text-align: left !important;
        gap: 0.5rem !important;
    }

    .footer-cols-group .footer-links a {
        font-size: 0.9rem !important;
        padding: 0.15rem 0 !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center !important;
        align-items: center !important;
        padding-top: 1.25rem !important;
    }

    .footer-bottom p {
        text-align: center !important;
        font-size: 0.8rem !important;
        justify-content: center !important;
    }
}

/* Footer columns desktop layout fallback */
.footer-cols-group {
    display: contents;
}

/* --- Footer Counter Spacing --- */
.footer-counter-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
}

.footer-counter-container a,
.footer-counter-container img,
.footer-counter-container iframe,
.footer-counter-container div,
.footer-counter-container span {
    margin-right: 0.5rem;
    display: inline-block;
}

.footer-counter-container > *:last-child {
    margin-right: 0;
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .site-header .container {
        padding: 0 0.75rem !important;
    }

    .logo span {
        font-size: 1.05rem;
    }

    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .project-card-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-left: 0;
        border-top: 1px solid var(--border-glass);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    .project-card-icon {
        width: 42px;
        height: 42px;
    }

    .project-card-title {
        font-size: 1.05rem;
    }

    .project-card-summary {
        font-size: 0.82rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .project-header-title {
        font-size: 1.5rem;
    }

    .project-detail-layout {
        gap: 1.25rem;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0.85rem;
    }

    .btn {
        padding: 0.6rem 1.1rem;
    }
}

/* --- Shader Grid Layout & Cover Card --- */
.shader-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 1rem;
}

.shader-grid-ad-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.shader-grid-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 475px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.shader-grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 192, 91, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.shader-cover-image {
    width: 100%;
    height: 265px;
    object-fit: cover;
    transition: var(--transition-normal);
    background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-base));
}

.shader-grid-card:hover .shader-cover-image {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.shader-info-panel {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-surface), #0b0f19);
    min-width: 0;
}

.shader-title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
}

.shader-card-icon-container {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.shader-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    object-fit: cover;
    background-color: var(--bg-surface-elevated);
}

.shader-title-text {
    flex: 1;
    min-width: 0;
}

.shader-grid-title {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.shader-grid-author {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.shader-grid-summary {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 0.6rem;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em; /* fixed height for 2 lines to align elements */
}

.shader-grid-badges {
    display: flex;
    gap: 0.4rem;
    margin: 0.6rem 0;
    flex-wrap: wrap;
}

.shader-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.5rem;
    text-transform: capitalize;
}

.shader-badge.loader-badge {
    text-transform: none;
}

.shader-grid-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.shader-meta-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Changelog styles */
.changelog-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-normal);
}
.changelog-item:hover {
    border-color: rgba(0, 192, 91, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

/* Admin catalog styles */
.catalog-row:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

#admin-catalog-table td {
    border-bottom: 1px solid var(--border-glass);
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 19, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 192, 91, 0.15);
    border: 1px solid var(--border-glass);
    object-fit: contain;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    user-select: none;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 1.5rem;
    user-select: none;
}

.lightbox-arrow:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-left {
    left: 2rem;
}

.lightbox-arrow-right {
    right: 2rem;
}

.gallery-item img {
    cursor: pointer;
}

/* --- Navigation Dropdown --- */
.nav-dropdown-container {
    position: relative;
    display: inline-block;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.9rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-dropdown-trigger {
    padding: 0.55rem 1.1rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-dropdown-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-dropdown-trigger.active {
    color: #fff;
    background: rgba(0, 192, 91, 0.14);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 192, 91, 0.25);
}

.nav-dropdown-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.nav-dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
    opacity: 0.7;
}

.nav-dropdown-trigger:hover .nav-dropdown-arrow,
.nav-dropdown-trigger.active .nav-dropdown-arrow {
    opacity: 1;
}

.nav-dropdown-trigger.active .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: #0d1224 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-md);
    padding: 0.6rem;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

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

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    background: rgba(0, 192, 91, 0.14) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #94a3b8;
    transition: all var(--transition-fast);
}

.dropdown-item-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.nav-dropdown-item:hover .dropdown-item-icon {
    color: var(--primary);
    transform: scale(1.12);
}

.nav-dropdown-item.active {
    background: rgba(0, 192, 91, 0.1) !important;
    color: var(--primary) !important;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}/* --- Modrinth-style Download Modal --- */
.dl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dl-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.dl-modal-card {
    background: radial-gradient(circle at top right, rgba(30, 41, 79, 0.95), rgba(15, 20, 39, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px; /* Enlarged width */
    padding: 2.2rem; /* Enlarged padding */
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.75), 0 0 60px rgba(0, 192, 91, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.dl-modal-header {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: space-between;
}

.dl-modal-icon {
    width: 40px; /* Enlarged icon */
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.dl-modal-title {
    font-size: 1.15rem; /* Enlarged font */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.dl-modal-close {
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.dl-modal-close svg {
    width: 14px;
    height: 14px;
    stroke-width: 3.5;
}

.dl-selector {
    margin-bottom: 1rem; /* Enlarged margin */
    position: relative;
}

.dl-trigger-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dl-selected-value {
    color: var(--primary);
    font-weight: 700;
    margin-left: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 192, 91, 0.2);
}

.dl-icon {
    width: 18px; /* Enlarged SVG icon */
    height: 18px;
    color: var(--text-secondary);
    opacity: 0.75;
    transition: var(--transition-fast);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-select-trigger:hover .dl-icon,
.dl-select-trigger.active .dl-icon {
    color: var(--primary);
    opacity: 1;
}

.dl-arrow-icon {
    width: 16px; /* Enlarged chevron size */
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-select-trigger.active .dl-arrow-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.dl-select-trigger {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.35rem; /* Enlarged padding */
    color: var(--text-primary);
    font-size: 0.96rem; /* Enlarged font */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    gap: 1rem;
}

.dl-select-trigger:hover {
    border-color: rgba(0, 192, 91, 0.35);
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1.55rem;
}

.dl-select-trigger.active {
    border-color: var(--primary);
    border-left-color: var(--primary);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding-left: 1.55rem;
    background: rgba(7, 9, 19, 0.8);
}

.dl-select-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(7, 9, 19, 0.85);
    border: 1px solid transparent;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, border-color 0.3s ease;
    position: relative;
    width: 100%;
    z-index: 5;
    margin-top: -1px;
}

.dl-select-dropdown.active {
    max-height: 270px; /* Enlarged dropdown max-height */
    opacity: 1;
    overflow-y: auto;
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: transparent;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Custom Scrollbar for Dropdown Lists */
.dl-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.dl-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.dl-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 192, 91, 0.35); /* Glowing green by default */
    border-radius: 10px;
    border: 2px solid rgba(7, 9, 19, 0.85); /* Inset floating capsule effect */
    transition: background 0.25s ease;
}

.dl-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #00d666; /* Bright neon green on hover */
}

.dl-search-input {
    width: calc(100% - 1.8rem);
    margin: 0.9rem;
    padding: 0.6rem 1rem; /* Enlarged search padding */
    font-size: 0.9rem;
    background: #0f1322;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: #fff;
    transition: border-color 0.2s ease;
}

.dl-search-input:focus {
    border-color: var(--primary);
    outline: none;
}

.dl-options-list {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 6px;
}

.dl-option-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: itemAppear 0.25s cubic-bezier(0.25, 1, 0.5, 1) both;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03); /* Visible card background by default */
    border: 1px solid rgba(255, 255, 255, 0.05) !important; /* Visible border */
}

@keyframes itemAppear {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dl-option-item:nth-child(1) { animation-delay: 0.01s; }
.dl-option-item:nth-child(2) { animation-delay: 0.02s; }
.dl-option-item:nth-child(3) { animation-delay: 0.03s; }
.dl-option-item:nth-child(4) { animation-delay: 0.04s; }
.dl-option-item:nth-child(5) { animation-delay: 0.05s; }
.dl-option-item:nth-child(6) { animation-delay: 0.06s; }
.dl-option-item:nth-child(7) { animation-delay: 0.07s; }
.dl-option-item:nth-child(8) { animation-delay: 0.08s; }

.dl-option-item:hover {
    background: rgba(0, 192, 91, 0.12) !important;
    color: var(--primary) !important;
    border-color: rgba(0, 192, 91, 0.3) !important;
    padding-left: 1.55rem;
}

.dl-option-item.selected {
    background: #00c05b !important;
    color: #040815 !important;
    border-color: #00c05b !important;
    font-weight: 800;
    padding-left: 1.55rem;
    box-shadow: 0 4px 12px rgba(0, 192, 91, 0.3);
}

.dl-result-container {
    margin-top: 1.75rem;
}

.dl-success-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 9, 19, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 0.65rem 0.65rem 0.65rem 1.35rem; /* Enlarged padding */
    margin-top: 1.75rem;
    gap: 0.85rem;
    animation: slideUpFade 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dl-success-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dl-success-badge {
    width: 36px; /* Enlarged badge */
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.dl-badge-release {
    background: rgba(0, 192, 91, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 192, 91, 0.25);
}

.dl-badge-beta {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.dl-badge-alpha {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.dl-success-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dl-success-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.98rem; /* Enlarged name font */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-success-sub {
    font-size: 0.78rem; /* Enlarged subtext font */
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-success-right {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.dl-green-btn {
    background: #00c05b;
    color: #040815 !important;
    font-weight: 700;
    padding: 0.65rem 1.55rem; /* Enlarged button padding */
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem; /* Enlarged font */
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 192, 91, 0.35);
}

.dl-green-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shimmer 3.5s infinite ease-in-out;
}

@keyframes shimmer {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.dl-green-btn:hover {
    background: #00d666;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(0, 192, 91, 0.5);
}

.dl-icon-btn {
    width: 38px; /* Enlarged link button */
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.dl-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.dl-no-match-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
    color: #f87171;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Modrinth-style Versions Table --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.25rem;
    background: rgba(22, 28, 48, 0.65); /* Lighter dark slate card background */
    border: 1px solid rgba(255, 255, 255, 0.07); /* Clean border */
    border-radius: var(--radius-md);
    padding: 0.4rem 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.v-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.v-table th {
    padding: 0.95rem 1rem;
    color: rgba(255, 255, 255, 0.6); /* Lighter header text */
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v-table td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.v-table tr:last-child td {
    border-bottom: none; /* Prevent border bleed at the bottom */
}

.v-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.v-row-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.v-badge-release {
    background: rgba(0, 230, 118, 0.18);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.v-badge-beta {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.v-badge-alpha {
    background: rgba(239, 68, 68, 0.18);
    color: #ffa4a4;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.v-row-name {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast);
}

.v-row-name:hover {
    color: var(--primary);
    text-decoration: underline;
}

.v-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.v-tag {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px;
    padding: 0.18rem 0.6rem;
    font-size: 0.75rem;
    color: #ffffff !important;
    font-weight: 600;
    white-space: nowrap;
}

.v-tag-plus {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.v-tag-platform {
    background: rgba(0, 192, 91, 0.16) !important;
    border-color: rgba(0, 192, 91, 0.35) !important;
    color: #39ff96 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.v-download-link {
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.v-download-link:hover {
    background: rgba(0, 192, 91, 0.12);
    transform: scale(1.08);
}

.v-actions-btn {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.v-actions-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.clickable-row {
    cursor: pointer;
}

/* --- Table Actions Dropdown --- */
.v-actions-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #121625;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    min-width: 175px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 0.35rem 0;
    flex-direction: column;
}

.v-actions-dropdown.active {
    display: flex;
    animation: dropdownAppear 0.22s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes dropdownAppear {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.v-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    user-select: none;
}

.v-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.v-dropdown-item svg {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.v-dropdown-item:hover svg {
    color: #fff;
}

.v-dropdown-item.download-item:hover svg {
    color: #00e676;
}

.v-dropdown-item.report-item:hover {
    background: rgba(239, 68, 68, 0.08);
}

.v-dropdown-item.report-item:hover svg {
    color: #ef4444;
}
/* --- Timeline Changelog --- */
.changelog-code-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.45rem;
    font-size: 0.84rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.9);
}

.changelog-bullet-list {
    margin: 0.5rem 0 0.8rem 1.25rem !important;
    list-style-type: disc !important;
}

.changelog-bullet-list li {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
}

.changelog-version-link:hover {
    color: var(--primary) !important;
}

/* --- Pagination System --- */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    user-select: none;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    outline: none;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pagination-item:hover {
    color: #ffffff;
    background: rgba(0, 192, 91, 0.08);
    border-color: rgba(0, 192, 91, 0.3);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 192, 91, 0.1);
}

.pagination-item.active {
    background: linear-gradient(135deg, #00c05b 0%, #00e676 100%) !important;
    color: #040815 !important;
    font-weight: 800;
    font-size: 0.95rem;
    border-color: #00c05b !important;
    box-shadow: 0 0 16px rgba(0, 192, 91, 0.45), 0 4px 12px rgba(0, 192, 91, 0.25);
    cursor: default;
    pointer-events: none;
    animation: pagination-active-pulse 2s infinite alternate;
}

.pagination-item.nav-prev:hover {
    transform: translateY(-2px) translateX(-3px) scale(1.05);
}

.pagination-item.nav-next:hover {
    transform: translateY(-2px) translateX(3px) scale(1.05);
}

.pagination-dots {
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 0.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    letter-spacing: 1px;
}

@keyframes pagination-active-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(0, 192, 91, 0.45), 0 4px 12px rgba(0, 192, 91, 0.25);
    }
    100% {
        transform: scale(1.06);
        box-shadow: 0 0 22px rgba(0, 192, 91, 0.6), 0 6px 16px rgba(0, 192, 91, 0.35);
    }
}

/* --- Animated Icons System --- */
.tab-icon {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
    transform-origin: center;
    display: inline-block;
}

/* Base animations */
.type-menu-item .icon-all { animation: pulse-all 3.5s infinite ease-in-out; }
.type-menu-item:hover .icon-all { animation: pulse-all 0.8s infinite ease-in-out; }

.type-menu-item .icon-mod { animation: rotate-gear 12s infinite linear; }
.type-menu-item:hover .icon-mod { animation: rotate-gear 2s infinite linear; }

.type-menu-item:hover .icon-resource { animation: wiggle-brush 0.6s infinite ease-in-out; }

.type-menu-item:hover .icon-datapack { animation: slide-db 0.8s infinite ease-in-out; }

.type-menu-item .icon-shader { animation: spark-star 4.5s infinite ease-in-out; }
.type-menu-item:hover .icon-shader { animation: spark-star 1.2s infinite ease-in-out; }

.type-menu-item:hover .icon-modpack { animation: bounce-pack 0.6s infinite ease-in-out; }

.type-menu-item:hover .icon-plugin { animation: shake-plug 0.5s infinite ease-in-out; }

/* Blinking LEDs on server icon path */
.type-menu-item .server-led-1 { animation: blink-led 1s infinite steps(2, start); }
.type-menu-item .server-led-2 { animation: blink-led 1.2s infinite steps(2, start); }

/* Keyframe animations */
@keyframes rotate-gear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-all {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes wiggle-brush {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes slide-db {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes spark-star {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.3) rotate(45deg); opacity: 1; }
}

@keyframes bounce-pack {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes shake-plug {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-1px, 1px) rotate(-5deg); }
    40% { transform: translate(1px, -1px) rotate(5deg); }
    60% { transform: translate(-1px, -1px) rotate(-3deg); }
    80% { transform: translate(1px, 1px) rotate(3deg); }
}

@keyframes blink-led {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}
