:root {
    --bg: #0a0a0a;
    --card: #141414;
    --accent: #ffcc00;
    --text: #ffffff;
    --muted: #888;
    --border: #222;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 1)), 
                url('') center/cover no-repeat;
    border-bottom: 1px solid #222;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, #0a0a0a 150%),
                linear-gradient(rgba(255, 204, 0, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 204, 0, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
}

.yellow-accent {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.3); /* Adds a subtle glow */
}

.container { width: 90%; max-width: 1000px; margin: 60px auto; }
.section-title { color: var(--accent); text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 30px; font-size: 1.2rem; }

.firmware-item {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.firmware-item:hover { border-color: var(--accent); background: #1a1a1a; }

.firmware-info h3 { margin: 0 0 8px 0; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.firmware-info p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }

.tag { font-size: 0.7rem; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; font-weight: 900; }
.tag-stock { background: #333; color: #eee; }
.tag-mod { background: var(--accent); color: #000; }

.download-btn { 
    background: transparent; 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    padding: 10px 24px; 
    text-decoration: none; 
    border-radius: 4px; 
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}
.download-btn:hover { background: var(--accent); color: #000; }

@media (max-width: 768px) {
    .yellow-accent { font-size: 2.5rem; }
    .firmware-item { flex-direction: column; text-align: center; gap: 20px; }
    .download-btn { width: 100%; box-sizing: border-box; }
}

.search-container {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

#firmware-search {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

#firmware-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
}

.badge-tested {
    color: #ffcc00;
    font-size: 0.65rem;
    border: 1px solid #ffcc00;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 10px;
}

.tag-normal { background: #333; color: #eee; }
.tag-danger { background: #ff4444; color: #fff; }

.version-info {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #555;
}

#firmware-count, #model-count {
    color: var(--accent);
    font-weight: bold;
}

/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #141414;
    border: 2px solid #ffcc00;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
}

.modal-content h3 { color: #ffcc00; margin-top: 0; }
.modal-content p { color: #ccc; line-height: 1.5; font-size: 0.95rem; }

.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.modal.active { display: flex; }

.download-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.download-btn:hover {
    background: var(--accent);
    color: #000;
}