/* Modern Dark Theme & UI Enhancements */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #181A20;
    color: #EAEAEA;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    letter-spacing: 0.01em;
    position: relative;
}

header {
    background: linear-gradient(90deg, #23243a 0%, #2d2e4a 100%);
    color: #fff;
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    border-bottom: 1px solid #23243a;
}

header h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.05rem;
    position: relative;
}

nav a:hover, nav a:focus {
    background: #3a3b5a;
    color: #ffb300;
}

nav a:hover::after, nav a:focus::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffb300;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffb300;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

nav a:hover::after, nav a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

main {
    padding: 2.5rem 1rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 3.5rem;
}

h2 {
    color: #ffb300;
    border-bottom: 2px solid #ffb300;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.rom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    overflow: visible; /* Allow children to overflow */
}

.rom-card {
    background: #23243a;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #292a3e;
    color: #EAEAEA;
    position: relative; /* Make card a positioning context */
    display: flex;
    flex-direction: column;
    min-height: 420px; /* Optional: keep cards even height */
    overflow: visible; /* Allow description to overflow card */
}

.rom-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border-color: #ffb300;
}

.rom-card h3 {
    margin-top: 0;
    color: #ffb300;
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}

.rom-card p {
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.rom-banner {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 8px auto;
    background: #f8f8f8;
    border-radius: 8px 8px 0 0;
}

.rom-features h4, .rom-bugs h4 {
    color: #ffb300;
    margin-bottom: 0.5rem;
}

.rom-features ul, .rom-bugs ul {
    padding-left: 1.5rem;
    margin: 0;
}

.rom-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-btn, .instructions-btn {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,179,0,0.08);
    border: none;
    cursor: pointer;
}

.download-btn {
    background: linear-gradient(90deg, #ffb300 0%, #ff8c00 100%);
    color: #181A20;
}
.download-btn:hover {
    background: linear-gradient(90deg, #ff8c00 0%, #ffb300 100%);
    color: #fff;
}
.instructions-btn {
    background: #292a3e;
    color: #ffb300;
    border: 1px solid #ffb300;
    outline: 2px solid #ffb300;
}
.instructions-btn:hover {
    background: #ffb300;
    color: #181A20;
}

footer {
    text-align: center;
    padding: 1.2rem;
    background: #23243a;
    color: #aaa;
    margin-top: 2rem;
    border-top: 1px solid #292a3e;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .rom-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .rom-grid {
        grid-template-columns: 1fr;
    }
    main {
        padding: 1rem 0.2rem;
    }
}

.search-container {
    display: flex;
    gap: 0.7rem;
    margin: 1.5rem auto 0 auto;
    max-width: 600px;
    padding: 0.5rem 1rem;
    background: #23243a;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #3a3b5a;
    transition: all 0.3s ease;
}

.search-container:hover {
    border-color: #ffb300;
    box-shadow: 0 6px 16px rgba(255, 179, 0, 0.1);
}

#search-input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    background: #181A20;
    color: #EAEAEA;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ffb30044;
}

#search-button {
    padding: 0 1.7rem;
    background: linear-gradient(90deg, #ffb300 0%, #ff8c00 100%);
    color: #181A20;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-button:hover {
    background: linear-gradient(90deg, #ff8c00 0%, #ffb300 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.2);
}

#search-button:active {
    transform: translateY(0);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: #23243a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border: 1px solid #292a3e;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #ffb300;
    margin-bottom: 0.2rem;
}

.filter-group select {
    padding: 0.6rem;
    border: 2px solid #292a3e;
    border-radius: 6px;
    background: #181A20;
    color: #EAEAEA;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.filter-group select:focus {
    outline: none;
    border-color: #ffb300;
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.guide-item {
    background: #23243a;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    overflow: hidden;
    border: 1px solid #292a3e;
}

.guide-title {
    width: 100%;
    padding: 1.1rem 1.7rem;
    text-align: left;
    background: #292a3e;
    color: #ffb300;
    border: none;
    font-size: 1.13rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.guide-title:hover, .guide-title:focus {
    background: #ffb300;
    color: #181A20;
}
.guide-title::after {
    content: '+';
    font-size: 1.5rem;
    color: #ffb300;
    margin-left: auto;
    transition: color 0.2s;
}
.guide-title.active::after {
    content: '-';
    color: #181A20;
}

.guide-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    padding: 0 1.7rem;
    background: #23243a;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #EAEAEA;
}
.guide-content.show {
    max-height: 500px;
    padding: 1.5rem 1.7rem;
}
.guide-content ol, .guide-content ul {
    padding-left: 1.8rem;
    margin: 0.8rem 0;
}
.guide-content li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}
.guide-content h4 {
    color: #ffb300;
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1.15rem;
    font-weight: 600;
}
.guide-content code {
    background: #292a3e;
    color: #ffb300;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Mono', monospace;
    font-size: 0.95em;
}
.guide-content a {
    color: #ffb300;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-content a:hover {
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #23243a;
    color: #EAEAEA;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 1.5rem;
}
td, th {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #292a3e;
}
th {
    color: #ffb300;
    font-weight: 600;
    background: #23243a;
}
tr:last-child td, tr:last-child th {
    border-bottom: none;
}

/* News section placeholder */
#news {
    background: #23243a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 1.5rem;
    color: #EAEAEA;
}

.desc-toggle {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,179,0,0.08);
    border: none;
    cursor: pointer;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, #ffb300 0%, #ff8c00 100%);
    color: #181A20;
}
.desc-toggle.hide {
    background: #292a3e;
    color: #ffb300;
    border: 1px solid #ffb300;
}
.desc-toggle:hover {
    background: linear-gradient(90deg, #ff8c00 0%, #ffb300 100%);
    color: #fff;
}
.desc-toggle.hide:hover {
    background: #ffb300;
    color: #181A20;
}

.rom-description-collapsible {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9999; /* Ensure it is above all other content */
    background: linear-gradient(135deg, #23243a 60%, #292a3e 100%);
    color: #EAEAEA;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    padding: 1.5rem 1.3rem;
    margin-top: 0.5rem;
    display: none;
    min-width: 250px;
    max-width: 100%;
    word-break: break-word;
    border: 1.5px solid #292a3e;
    backdrop-filter: blur(2px);
    transition: box-shadow 0.2s, border 0.2s;
}
.rom-description-collapsible.show {
    display: block;
    animation: fadeInDesc 0.22s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 12px 40px 0 rgba(255,179,0,0.10), 0 8px 32px rgba(0,0,0,0.35);
    border: 1.5px solid #ffb300;
}
.rom-description-collapsible p, .rom-description-collapsible ul, .rom-description-collapsible li {
    margin: 0.5em 0;
    font-size: 1.08em;
    line-height: 1.6;
}
.rom-description-collapsible strong {
    color: #ffb300;
}
@keyframes fadeInDesc {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rom-desc-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(24,26,32,0.85);
    z-index: 10000;
    /* Blur effect for background */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter 0.22s cubic-bezier(0.4,0,0.2,1), -webkit-backdrop-filter 0.22s cubic-bezier(0.4,0,0.2,1);
}
.rom-desc-modal-backdrop.active {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rom-desc-modal-backdrop.closing {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.rom-desc-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(35,36,58,0.35);
    color: #EAEAEA;
    border-radius: 22px;
    box-shadow: 0 16px 48px 0 rgba(0,0,0,0.35), 0 2px 16px 0 rgba(255,179,0,0.10);
    border: 1.5px solid #ffb30044;
    min-width: 340px;
    max-width: 98vw;
    max-height: 85vh;
    overflow: hidden;
    z-index: 10001;
    padding: 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(18px) saturate(1.5) brightness(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.5) brightness(1.08);
    animation: modalPopIn 0.22s cubic-bezier(0.4,0,0.2,1);
}
.rom-desc-modal-content.closing {
    animation: modalPopOut 0.22s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes modalPopOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -60%) scale(0.96); }
}
.rom-desc-modal-header {
    position: sticky;
    top: 0;
    background: rgba(35,36,58,0.18); /* More transparent for acrylic look */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
    padding: 0.5rem 1.2rem 0.5rem 1.2rem;
    border-bottom: 1px solid #292a3e44;
    min-height: 3.2rem;
}
.rom-desc-modal-close {
    background: none;
    border: none;
    color: #ffb300;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    padding: 0.2em 0.5em;
    margin-left: auto;
}
.rom-desc-modal-close:hover, .rom-desc-modal-close:focus {
    background: #ffb30022;
    color: #fff;
}
.rom-desc-modal-body {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    font-size: 1.08em;
    line-height: 1.6;
    word-break: break-word;
    flex: 1 1 auto;
}

.rom-modal-banner {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px 14px 8px 8px;
    margin-bottom: 1.2rem;
    background: #23243a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: block;
}

@media (max-width: 600px) {
    .rom-desc-modal-content {
        min-width: 0;
        width: 99vw;
        padding: 0;
    }
    .rom-desc-modal-body {
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }
    .rom-desc-modal-header {
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
}
@keyframes modalPopIn {
    from { opacity: 0; transform: translate(-50%, -60%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

::-webkit-scrollbar {
    width: 10px;
    background: #181A20;
}
::-webkit-scrollbar-thumb {
    background: #292a3e;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffb300;
}

/* FAQ Section Styling - Updated to match flashing guide button */
.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 0.6rem 1.3rem;
    background: #292a3e;
    border: 1px solid #ffb300;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #ffb300;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(255,179,0,0.08);
    border-radius: 6px;
}

.faq-question:hover {
    background: #ffb300;
    color: #181A20;
}

.faq-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.faq-arrow {
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #23243a;
    color: #EAEAEA;
}

.faq-answer.show {
    padding: 1rem 1.5rem;
    max-height: 1000px;
}

.faq-answer ol, .faq-answer ul {
    padding-left: 1.5rem;
}

.faq-answer p {
    margin: 0.5rem 0;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    header {
        padding: 1rem 0.5rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    /* Search container - forces vertical stacking */
    .search-container {
        display: flex;
        flex-direction: column; /* Stacks children vertically */
        gap: 0.5rem; /* Space between input and button */
        width: calc(100% - 1rem);
        margin: 1rem 0.5rem;
        padding: 0;
        box-sizing: border-box;
    }

    /* Search input - full width */
    #search-input {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.8rem;
    }

    /* Search button - full width */
    #search-button {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .rom-card {
        min-height: auto;
        padding: 1.5rem 1rem;
    }
    
    .rom-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .download-btn, .instructions-btn {
        width: 100%;
        text-align: center;
    }
    
    .guide-title {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    /* Modal adjustments */
    .rom-desc-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .rom-desc-modal-body {
        padding: 1rem;
    }

    /* Fix button overflow in mobile view */
    .download-btn, .instructions-btn, #search-button {
        width: 100%;
        box-sizing: border-box;
        padding: 0.6rem 0.5rem;
        font-size: 0.95rem;
    }

    /* Ensure buttons fit within the card */
    .rom-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    /* Adjust search container padding */
    .search-container {
        padding: 0.5rem;
    }

    /* Ensure buttons don't overflow the card */
    .rom-card {
        padding: 1.5rem 0.8rem;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .rom-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filters {
        grid-template-columns: 1fr 1fr;
    }
    
    .rom-card {
        min-height: 380px;
    }
}

/* Prevent zooming on form inputs on mobile */
@media (max-width: 480px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Touch target sizes */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    nav a {
        padding: 0.8rem;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Page transition animation */
.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Replace existing progress section styles */
#feature-progress {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #23243a;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 1px solid #292a3e;
}

.progress-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.capoo-busy {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 0 1rem 0;
    padding: 0.5rem;
    background: rgba(35,36,58,0.3);
    border-radius: 8px;
    border: 1px dashed #ffb300;
}

.progress-bar {
    height: 12px;
    background: #181A20;
    border-radius: 6px;
    margin: 0 0 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb300 0%, #ff8c00 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #EAEAEA;
}

.progress-text {
    font-weight: 600;
    color: #ffb300;
}

.progress-details {
    opacity: 0.8;
    font-size: 0.9rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 6px;
    background: #292a3e;
}

.feature-icon {
    margin-right: 0.8rem;
    font-weight: bold;
}

.feature-item.implemented {
    border-left: 4px solid #4CAF50;
}

.feature-item.implemented .feature-icon {
    color: #4CAF50;
}

.feature-item.not-implemented {
    border-left: 4px solid #F44336;
}

.feature-item.not-implemented .feature-icon {
    color: #F44336;
}

.feature-name {
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* Bugcat Capoo Animation Styles */
.capoo-busy {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 0 1rem 0;
    padding: 0.5rem;
    background: rgba(35,36,58,0.3);
    border-radius: 8px;
    border: 1px dashed #ffb300;
}

.capoo-gif {
    width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
}

.capoo-text {
    color: #ffb300;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .capoo-busy {
        padding: 0.8rem;
    }
    
    .capoo-gif {
        width: 80px;
    }
}

/* Start of Selection */
.conflict-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.conflict-warning {
    --warning-color: #ff3e3e;
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.1) 0%, rgba(255, 62, 62, 0.2) 100%);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    animation: pulse 1.5s infinite alternate;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(255, 62, 62, 0.3);
    box-shadow: 0 4px 20px rgba(255, 62, 62, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.conflict-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 62, 62, 0.2);
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.15) 0%, rgba(255, 62, 62, 0.25) 100%);
}

.conflict-help {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #ff3e3e;
    border: 1px solid rgba(255, 62, 62, 0.3);
    border-radius: 12px;
    width: 2rem;
    height: 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.conflict-help:hover {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.highlight-conflict {
    position: relative;
    outline: 3px solid #ffcc00;
    box-shadow: 0 0 15px 5px rgba(255, 204, 0, 0.5);
}

.highlight-conflict::before {
    content: "⚠️ CONFLICTING MODULE ⚠️";
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    background: #ffcc00;
    color: #000;
    font-weight: bold;
    text-align: center;
    padding: 3px;
    border-radius: 4px 4px 0 0;
    z-index: 1;
}

.fade-out {
    animation: highlight-fade 1.5s ease-out forwards;
}

@keyframes highlight-fade {
    0% {
        opacity: 1;
        outline-color: #ffcc00;
        box-shadow: 0 0 15px 5px rgba(255, 204, 0, 0.5);
    }
    100% {
        opacity: 0;
        outline-color: rgba(255, 204, 0, 0);
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

@keyframes pulse {
    0% { opacity: 0.9; box-shadow: 0 4px 20px rgba(255, 62, 62, 0.1); }
    100% { opacity: 1; box-shadow: 0 4px 30px rgba(255, 62, 62, 0.3); }
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.3); }
    50% { box-shadow: 0 0 0 1rem rgba(255, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

.conflict-help-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.conflict-help-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
}

.conflict-help-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 35rem;
    width: 90%;
    position: relative;
    z-index: 1001;
    border: 1px solid rgba(255, 62, 62, 0.2);
    box-shadow: 0 10px 50px rgba(255, 62, 62, 0.2);
}

.conflict-help-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #ff3e3e;
    transition: all 0.3s ease;
}

.conflict-help-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}
/* End of Selection */
