/* ========================================================
   BLOODBORNE PC & SHADPS4 REPO HUB - GOTHIC DESIGN SYSTEM
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-dark: #07080B;
    --bg-surface: #0E1017;
    --bg-card: rgba(14, 16, 23, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(229, 9, 20, 0.4);
    --crimson: #E50914;
    --crimson-glow: #FF2A4D;
    --lunar-silver: #E2E8F0;
    --text-muted: #94A3B8;
    --arcane-cyan: #00F5D4;
    --insight-blue: #38BDF8;
    --blood-gold: #F59E0B;
    --green-pulse: #22FF88;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 10% 30%, rgba(139, 0, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
    color: var(--lunar-silver);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================================
   TOP NEON GLOW BAR
   ======================================================== */
.top-glow-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E50914, #FF2A4D, #F59E0B, #FF2A4D, #E50914);
    background-size: 300% 100%;
    animation: crimsonPulseFlow 6s linear infinite;
    z-index: 1001;
}

@keyframes crimsonPulseFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================================
   NAVIGATION HEADER
   ======================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 74px;
    background: rgba(8, 9, 14, 0.9) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Brand Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.brand-pc-badge {
    color: var(--crimson-glow);
    -webkit-text-fill-color: var(--crimson-glow);
    font-style: italic;
    font-weight: 950;
    text-shadow: 0 0 12px rgba(229, 9, 20, 0.8), 0 0 24px rgba(229, 9, 20, 0.4);
}

.brand-sub {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #F59E0B;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    margin-left: 2px;
}

.repo-verified-pill {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(255, 42, 77, 0.4);
    color: var(--crimson-glow);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

/* ========================================================
   SLEEK GLASSMORPHIC SEARCH BAR
   ======================================================== */
.nav-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
}

.nav-search-wrapper .search-icon {
    position: absolute;
    left: 1.1rem;
    color: var(--crimson-glow);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.5));
}

#search-input {
    width: 100%;
    height: 44px;
    background: rgba(14, 17, 24, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0 4.5rem 0 3rem;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#search-input::placeholder {
    color: #94A3B8;
    opacity: 0.8;
    font-size: 0.84rem;
}

#search-input:hover {
    background: rgba(18, 22, 32, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

#search-input:focus {
    background: rgba(15, 18, 28, 0.98);
    border-color: var(--crimson-glow);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.35), inset 0 1px 3px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.nav-search-wrapper:focus-within .search-icon {
    transform: scale(1.1);
    color: var(--crimson-glow);
    filter: drop-shadow(0 0 10px rgba(255, 42, 77, 0.9));
}

.search-clear-btn {
    position: absolute;
    right: 3.2rem;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

.search-clear-btn:hover {
    color: var(--crimson-glow);
}

.search-shortcut {
    position: absolute;
    right: 0.9rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 2;
}

.search-shortcut kbd {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 3px 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Nav Right Actions */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.nav-quick-link {
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.nav-quick-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 9, 20, 0.3);
}

.stat-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--lunar-silver);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green-pulse);
    box-shadow: 0 0 8px var(--green-pulse);
    position: relative;
    display: inline-block;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--green-pulse);
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--lunar-silver);
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

/* ========================================================
   SUBNAV CATEGORY FILTER RIBBON
   ======================================================== */
.subnav-ribbon {
    position: sticky;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 995;
    padding: 0.6rem 0;
}

.subnav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.subnav-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748B;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-category-pills {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
    flex-wrap: nowrap;
}

.nav-category-pills::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(14, 18, 26, 0.6);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-pill.pill-all {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.nav-pill.pill-all:hover, .nav-pill.pill-all.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.nav-pill.pill-emulator {
    border: 1px solid var(--crimson-glow);
    color: var(--crimson-glow);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}
.nav-pill.pill-emulator:hover, .nav-pill.pill-emulator.active {
    background: rgba(229, 9, 20, 0.2);
    box-shadow: 0 0 18px rgba(255, 42, 77, 0.5);
}

.nav-pill.pill-fps {
    border: 1px solid #F59E0B;
    color: #F59E0B;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.nav-pill.pill-fps:hover, .nav-pill.pill-fps.active {
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.5);
}

.nav-pill.pill-dlc {
    border: 1px solid #A855F7;
    color: #A855F7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}
.nav-pill.pill-dlc:hover, .nav-pill.pill-dlc.active {
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.nav-pill.pill-graphics {
    border: 1px solid #38BDF8;
    color: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.nav-pill.pill-graphics:hover, .nav-pill.pill-graphics.active {
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.nav-pill.pill-tools {
    border: 1px solid var(--arcane-cyan);
    color: var(--arcane-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}
.nav-pill.pill-tools:hover, .nav-pill.pill-tools.active {
    background: rgba(0, 245, 212, 0.2);
    box-shadow: 0 0 18px rgba(0, 245, 212, 0.5);
}

/* ========================================================
   FEATURED SPOTLIGHT HERO
   ======================================================== */
.featured-spotlight-section {
    max-width: 1440px;
    margin: 8.5rem auto 2.5rem auto;
    padding: 0 2rem;
}

.featured-card {
    background: rgba(14, 16, 24, 0.85);
    border: 1.5px solid rgba(229, 9, 20, 0.45);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 
        0 0 35px rgba(229, 9, 20, 0.2),
        0 0 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.15), transparent 70%);
    pointer-events: none;
}

.featured-preview {
    aspect-ratio: 16/9;
    max-height: 400px;
    overflow: hidden;
    border-radius: 14px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-img {
    transform: scale(1.03);
}

.featured-overlay-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(8, 9, 14, 0.85);
    border: 1px solid rgba(255, 42, 77, 0.5);
    backdrop-filter: blur(8px);
    color: var(--crimson-glow);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.featured-category-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cat-chip-crimson {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(255, 42, 77, 0.4);
    color: var(--crimson-glow);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.cat-chip-gold {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.featured-heading {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.featured-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.featured-stats-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.f-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #CBD5E1;
}

.f-stat-item i {
    color: var(--crimson-glow);
}

.featured-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-primary-download {
    background: linear-gradient(135deg, #E50914 0%, #FF2A4D 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.5);
    transition: all 0.25s ease;
}

.btn-primary-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 42, 77, 0.7);
}

.btn-secondary-details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary-details:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================================
   MODS CATALOG GRID SECTION
   ======================================================== */
.mods-section {
    max-width: 1440px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.03em;
}

.section-title i {
    color: var(--crimson-glow);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.results-count {
    color: #64748B;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.mod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.mod-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 9, 20, 0.15);
}

.card-image-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #0B0D14;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mod-card:hover .card-img {
    transform: scale(1.05);
}

.card-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(8, 9, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--lunar-silver);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-size-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(8, 9, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #94A3B8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
}

.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #94A3B8;
}

.card-downloads i {
    color: var(--crimson-glow);
    margin-right: 4px;
}

.card-rating i {
    color: #FBBF24;
    margin-right: 3px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn-card-download {
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(255, 42, 77, 0.35);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-card-download:hover {
    background: linear-gradient(135deg, #E50914 0%, #FF2A4D 100%);
    border-color: #FF2A4D;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

/* ========================================================
   IN-MODAL SURVEY LOCKER (VERIFIED ARCHITECTURE)
   ======================================================== */
.survey-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.survey-modal-card {
    background: #0E1017;
    border: 1.5px solid rgba(229, 9, 20, 0.4);
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 9, 20, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expanded Iframe Mode */
.survey-modal-card.survey-modal-iframe-mode {
    max-width: 960px;
    width: 95vw;
    height: 92vh;
}

.modal-header-bar {
    padding: 1rem 1.5rem;
    background: rgba(18, 20, 30, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-mod-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-mod-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-mod-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.modal-mod-meta {
    font-size: 0.75rem;
    color: #94A3B8;
    display: flex;
    gap: 8px;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    color: #ffffff;
    border-color: var(--crimson-glow);
}

/* Steps Indicator */
.modal-steps-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 12, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: #94A3B8;
}

.step-indicator-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748B;
}

.step-dot.active {
    background: var(--crimson-glow);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

.step-dot.completed {
    background: var(--green-pulse);
    color: #07080B;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-step {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-step.active {
    display: flex;
}

/* Step 1 Options */
.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

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

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.platform-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.platform-card.selected, .platform-card:hover {
    background: rgba(229, 9, 20, 0.12);
    border-color: var(--crimson-glow);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.platform-card i {
    font-size: 1.4rem;
    color: var(--crimson-glow);
}

.platform-card span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.checkbox-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #CBD5E1;
    cursor: pointer;
}

/* Step 2 Progress Scan */
.scan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    text-align: center;
}

.scan-radar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(229, 9, 20, 0.2);
    border-top-color: var(--crimson-glow);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E50914, #FF2A4D);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--crimson-glow);
}

.scan-status-text {
    font-size: 0.88rem;
    color: #CBD5E1;
    font-family: var(--font-mono);
}

/* Step 3 Human Verification & Iframe */
.verification-card {
    background: rgba(18, 22, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verification-specs-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94A3B8;
}

.verification-specs-row span:last-child {
    font-weight: 700;
    color: #ffffff;
}

.in-tab-iframe-panel {
    width: 100%;
    height: 100%;
    min-height: 520px;
    flex: 1;
    display: none;
    flex-direction: column;
}

.in-tab-survey-frame {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 520px;
    border: none;
    border-radius: 10px;
    background: #0B0D14;
}

/* Modal Footer Buttons */
.modal-footer-bar {
    padding: 1rem 1.5rem;
    background: rgba(10, 12, 18, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-modal-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-back:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-modal-next {
    background: linear-gradient(135deg, #E50914 0%, #FF2A4D 100%);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
    transition: all 0.2s;
}

.btn-modal-next:hover {
    box-shadow: 0 0 25px rgba(255, 42, 77, 0.6);
}

/* ========================================================
   LIVE DOWNLOAD TICKER (SOCIAL PROOF)
   ======================================================== */
.live-download-ticker {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(14, 16, 24, 0.95);
    border: 1px solid rgba(229, 9, 20, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.55rem 1.2rem;
    font-size: 0.8rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 990;
    transform: translateY(120px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-download-ticker.visible {
    transform: translateY(0);
}

.ticker-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crimson-glow);
    box-shadow: 0 0 8px var(--crimson-glow);
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
    background: #050608;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 2rem 2rem 2rem;
    margin-top: 5rem;
    color: #64748B;
    font-size: 0.82rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--crimson-glow);
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .nav-quick-link {
        display: none;
    }
    .nav-search-wrapper {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 68px;
    }
    .subnav-ribbon {
        top: 68px;
        padding: 0.4rem 0;
    }
    .nav-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    .subnav-container {
        padding: 0 1rem;
    }
    .subnav-label {
        display: none;
    }
    .brand-sub, .repo-verified-pill {
        display: none;
    }
    .search-shortcut {
        display: none;
    }
    #search-input {
        height: 40px;
        font-size: 0.82rem;
        padding: 0 2.2rem 0 2.4rem;
    }
    .featured-spotlight-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    .featured-heading {
        font-size: 1.6rem;
    }
    .mods-section {
        padding: 0 1rem;
    }
    .mods-grid {
        grid-template-columns: 1fr;
    }
    .survey-modal-card.survey-modal-iframe-mode {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

/* ========================================================
   LEGAL & BLOG PAGES STYLES
   ======================================================== */
.legal-page, .blog-page {
    background: #08090D;
    color: #E2E8F0;
    min-height: 100vh;
}

.legal-container, .blog-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.legal-card, .blog-article {
    background: #0E1017;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.legal-header, .blog-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(255, 42, 77, 0.4);
    color: var(--crimson-glow);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.legal-header h1, .blog-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.last-updated, .blog-meta {
    font-size: 0.85rem;
    color: #64748B;
    font-family: var(--font-mono);
}

.legal-body, .blog-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #CBD5E1;
}

.legal-body h2, .blog-body h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 2rem 0 0.75rem 0;
    border-left: 3px solid var(--crimson-glow);
    padding-left: 0.75rem;
}

.legal-body h3, .blog-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #F1F5F9;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-body p, .blog-body p {
    margin-bottom: 1.25rem;
}

.legal-body ul, .blog-body ul, .legal-body ol, .blog-body ol {
    margin: 0 0 1.25rem 1.5rem;
}

.legal-body li, .blog-body li {
    margin-bottom: 0.5rem;
}

.legal-body code, .blog-body code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FF2A4D;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.callout-box {
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(255, 42, 77, 0.3);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.callout-box p {
    margin-bottom: 0;
}

