:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.7);
    --primary-color: #00ff7f;
    --secondary-color: #00d2ff;
    --text-color: #e6edf3;
    --text-dim: #8b949e;
    --border-color: rgba(48, 54, 61, 0.5);
    --accent-gradient: linear-gradient(135deg, #00ff7f 0%, #00d2ff 100%);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader Screen Styles */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    width: 280px;
    height: auto;
    animation: fadeInLogo 1s ease-out forwards;
}

.loader-bar-container {
    width: 250px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    animation: loaderProgress 2.5s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

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

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a202c 0%, #0d1117 100%);
    z-index: -1;
}

.glow-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 127, 0.05) 0%, transparent 40%);
    pointer-events: none;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

header {
    height: 70px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    margin-right: 1.5rem;
}

.logo span {
    color: var(--primary-color);
    margin-left: 2px;
}

.search-container {
    position: relative;
    width: 280px;
}

.search-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 15px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 255, 127, 0.1);
}

.search-container kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

main {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 3rem;
    padding: 0 2rem;
    min-height: calc(100vh - 150px);
    position: relative;
    flex-wrap: wrap; /* Permite que el contenido caiga si no hay espacio */
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    display: none; /* Oculto por defecto */
}

.level-filters, .category-filters {
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.level-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg-color);
    font-weight: 700;
}

.category-filters ul {
    list-style: none;
    padding: 0;
}

.cat-item {
    padding: 10px 0;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
}

.cat-item:hover, .cat-item.active {
    color: var(--primary-color);
}

.content {
    flex: 1;
    min-width: 0; /* Evita que el flex-item rompa el contenedor */
}

/* Terminal Header */
.terminal-header {
    background: #1c2128;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-code);
}

.hero {
    margin-bottom: 3rem;
    position: relative;
    padding: 4rem 3rem;
    border-radius: 0 0 24px 24px;
    background: url('../assets/img/nmap-hero.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(13, 17, 23, 0.95) 30%, rgba(13, 17, 23, 0.6) 100%);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
}

/* Generator Section */
.generator-section {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.badge {
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
}

.generator-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gen-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gen-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gen-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.gen-group input, .gen-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
}

.gen-group-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.2s;
}

.check-container:hover {
    color: #fff;
}

.gen-result {
    background: #000;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 127, 0.2);
}

.result-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

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

.result-box code {
    font-family: var(--font-code);
    font-size: 1.2rem;
    color: #fff;
}

.copy-btn-large {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn-large:hover {
    background: #00cc66;
    transform: scale(1.05);
}

/* Animations */
.command-card {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

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

/* Scenarios Section */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.scenario-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.scenario-card:hover {
    border-color: var(--secondary-color);
    transform: scale(1.02);
    background: rgba(0, 210, 255, 0.05);
}

.scenario-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.scenario-title { font-weight: 700; margin-bottom: 0.5rem; color: var(--secondary-color); }
.scenario-desc { font-size: 0.85rem; color: var(--text-dim); }

/* Simulator Section Improvements */
.simulator-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.simulator-actions select {
    flex: 1;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
}

.lab-progress-container {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.lab-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

#labStatusText {
    color: var(--secondary-color);
}

.lab-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.lab-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.terminal-window {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-body {
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b9c1cb;
}

.terminal-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
    opacity: 0.5;
}

.typing-animation {
    border-right: 2px solid var(--primary-color);
    white-space: pre-wrap;
    overflow: hidden;
    display: inline-block;
}

.lab-result-line {
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(5px);
    animation: fadeInUp 0.3s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.lab-tag {
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 6px;
}

.lab-tag.success { background: rgba(0, 255, 127, 0.1); color: var(--primary-color); }
.lab-tag.info { background: rgba(0, 210, 255, 0.1); color: var(--secondary-color); }
.lab-tag.warning { background: rgba(255, 171, 0, 0.1); color: #ffab00; }
.lab-tag.danger { background: rgba(255, 86, 48, 0.1); color: #ff5630; }

.simulator-container {
    display: flex;
    gap: 2rem;
    background: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 4rem;
}

.simulator-terminal {
    flex: 2;
    background: #000;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #d1d1d1;
    overflow-x: auto;
}

.term-line { margin-bottom: 4rem; position: relative; }
.term-line.header { color: var(--text-dim); border-bottom: 1px solid #333; margin-bottom: 10px; padding-bottom: 5px; }

.state {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.state.open { color: #27c93f; }
.state.filtered { color: #ffbd2e; }
.state.closed { color: #ff5f56; }

.os-text { color: var(--secondary-color); }

.simulator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.info-item .dot {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Ports Table */
.ports-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.ports-table th, .ports-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ports-table th {
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-dim);
}

.ports-table td code {
    background: #000;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--primary-color);
    font-family: var(--font-code);
}

.badge.blue { background: rgba(0, 210, 255, 0.2); color: var(--secondary-color); }
.badge.orange { background: rgba(255, 171, 0, 0.2); color: #ffab00; }

.command-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 127, 0.4);
    box-shadow: 0 10px 30px rgba(0, 255, 127, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.level-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.level-tag.basico { background: rgba(0, 210, 255, 0.1); color: var(--secondary-color); }
.level-tag.intermedio { background: rgba(255, 171, 0, 0.1); color: #ffab00; }
.level-tag.avanzado { background: rgba(255, 86, 48, 0.1); color: #ff5630; }

.command-usage {
    background: #000;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #4cd964;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.copy-btn {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.command-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.command-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    transform: translateY(100px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    main { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .level-filters { flex-direction: row; flex-wrap: wrap; }
    .search-container { width: 100%; max-width: 300px; }
    .hero h1 { font-size: 2.5rem; }
}

/* Footer Section */
footer {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(to bottom, transparent, rgba(13, 17, 23, 0.9));
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.brand-description {
    color: var(--text-dim);
    max-width: 400px;
    line-height: 1.8;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4rem 0;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.signature p {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.author, .author a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.agency {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.copyright p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
    .footer-links-group { gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
/* Auditor Section (Expert System) */
.auditor-section {
    margin-bottom: 4rem;
    background: rgba(132, 0, 255, 0.03);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(132, 0, 255, 0.2);
    box-shadow: 0 0 40px rgba(132, 0, 255, 0.05);
}

.badge.purple { background: #8400ff; color: #fff; }

.auditor-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.auditor-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.auditor-tab {
    flex: 1;
    padding: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
}

.auditor-tab:hover {
    color: #fff;
    background: rgba(132, 0, 255, 0.05);
}

.auditor-tab.active {
    color: #8400ff;
    border-bottom-color: #8400ff;
    background: rgba(132, 0, 255, 0.1);
}

.auditor-content {
    padding: 2rem;
}

.auditor-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.auditor-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--font-code);
}

.primary-btn {
    background: #8400ff;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.primary-btn:hover {
    background: #6a00cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 0, 255, 0.3);
}

/* Wizard / Result Containers */
.wizard-container, .analysis-container, .profile-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    min-height: 200px;
    padding: 1.5rem;
    border: 1px dashed var(--border-color);
    position: relative;
}

.wizard-placeholder {
    color: var(--text-dim);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

textarea {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #4cd964;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.profile-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Result Styles */
.audit-step {
    border-left: 3px solid #8400ff;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInResult 0.5s ease forwards;
}

.audit-step h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.audit-cmd {
    background: #000;
    padding: 10px;
    border-radius: 6px;
    display: block;
    color: #00ff7f;
    font-family: var(--font-code);
    margin: 10px 0;
    font-size: 0.9rem;
}

.audit-why, .audit-what {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 5px;
}

.audit-why strong, .audit-what strong {
    color: #8400ff;
}

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

@keyframes slideInResult {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .profile-input-grid { grid-template-columns: 1fr; }
    .auditor-tabs { flex-direction: column; }
}

/* Generator V2 Enhancements */
.gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gen-flags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.flags-column h4 {
    font-size: 0.7rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.flags-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#customPorts {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 8px;
    border-radius: 6px;
    width: 100%;
}

@media (max-width: 768px) {
    .gen-flags-grid { grid-template-columns: 1fr; }
}

/* Tactical Analysis Module */
.gen-tactical-analysis {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tactical-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tactical-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tactical-meter {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease;
}

.tactical-status {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Logic Colors */
.risk-low { width: 20%; background: #00ff7f; }
.risk-medium { width: 50%; background: #ffab00; }
.risk-high { width: 90%; background: #ff3e3e; box-shadow: 0 0 10px rgba(255, 62, 62, 0.3); }

.rel-low { width: 30%; background: #ff3e3e; }
.rel-medium { width: 60%; background: #ffab00; }
.rel-high { width: 100%; background: #00ff7f; }

.load-minimal { width: 10%; background: #00ff7f; }
.load-moderate { width: 45%; background: #ffab00; }
.load-heavy { width: 85%; background: #ff3e3e; }

/* UX Overhaul: Intentions & Flow */
.hidden-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.visible-section {
    display: block !important;
    animation: slideUpIn 0.8s forwards;
}

@keyframes slideUpIn {
    to { opacity: 1; transform: translateY(0); }
}

.intentions-section {
    margin: 4rem 0;
    text-align: center;
}

.intentions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.intention-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.intention-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: 0.4s;
    z-index: 0;
}

.intention-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 127, 0.1);
}

.intention-card:hover::before {
    opacity: 0.05;
}

.intention-card > * {
    position: relative;
    z-index: 1;
}

.intention-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(132, 0, 255, 0.2));
}

.intention-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0;
}

.intention-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
}

.intention-card[data-action="audit"]:hover { border-color: #8400ff; }
.intention-card[data-action="analyze"]:hover { border-color: #00d2ff; }
.intention-card[data-action="generate"]:hover { border-color: #00ff7f; }
.intention-card[data-action="learn"]:hover { border-color: #ffab00; }

/* Main Tool Adjustments */
.main-tool {
    margin-top: 0;
    scroll-margin-top: 100px;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
    align-items: center;
}

.header-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.3);
}

.header-nav a.active {
    color: #fff;
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
}

@media (max-width: 1200px) {
    .header-nav { display: none; }
}

/* Sidebar Tooltip Overhaul */
.menu-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: none; /* Only mobile */
}

.sidebar-header {
    display: none; /* Only mobile */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.close-menu {
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    margin-right: -10px;
}

@media (max-width: 1024px) {
    header nav { padding: 0 1rem; }
    .search-container { width: 180px; }
    .menu-btn { display: block; }
    
    main { padding: 0 1rem; }
    
    .sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #0d1117 !important;
        z-index: 2000;
        padding: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important; /* Managed by class */
    }
    
    .sidebar.active {
        left: 0;
    }

    .sidebar-header { display: flex; }

    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 2.5rem 1.5rem; }
    
    .gen-grid, .gen-flags-grid, .profile-input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .auditor-tabs { flex-direction: column; }
    
    .intentions-grid { grid-template-columns: 1fr; }
}

/* NSE Library Styles */
.nse-section { margin-bottom: 4rem; }

.nse-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
}

.nse-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nse-controls-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.nse-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.nse-search-box input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    color: #fff;
    width: 100%;
}

.nse-search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.nse-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nse-cat-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.nse-cat-btn.active {
    background: rgba(255, 171, 0, 0.1);
    border-color: #ffab00;
    color: #ffab00;
}

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

.nse-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.nse-card:hover {
    border-color: #ffab00;
    transform: translateY(-5px);
    background: rgba(255, 171, 0, 0.05);
}

.nse-tag {
    font-size: 0.7rem;
    background: rgba(255, 171, 0, 0.2);
    color: #ffab00;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nse-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.nse-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.nse-code-box {
    background: #000;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 171, 0, 0.1);
}

.nse-code-box code { color: #ffab00; font-size: 0.8rem; }

/* Simulator Lab Styles */
.simulator-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 127, 0.02);
    border: 1px solid rgba(0, 255, 127, 0.1);
    border-radius: 12px;
}

.simulator-controls label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

#scenarioSelector {
    background: #000;
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.scenario-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

@media (max-width: 600px) {
    .simulator-controls { padding: 1rem; }
}

/* Evasion Matrix Styles */
.evasion-section { margin-bottom: 4rem; }
.evasion-matrix-container {
    background: rgba(255, 62, 62, 0.02);
    border: 1px solid rgba(255, 62, 62, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    overflow-x: auto;
}

.evasion-table {
    width: 100%;
    border-collapse: collapse;
}

.evasion-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 62, 62, 0.2);
    font-size: 0.8rem;
    color: #ff3e3e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.evasion-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);/* NSE Advanced Library Styles */
.nse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nse-card {
    background: rgba(22, 27, 34, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.nse-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    background: rgba(0, 210, 255, 0.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nse-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
}

.nse-risk {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.risk-success { background: rgba(0, 255, 127, 0.1); color: var(--primary-color); }
.risk-danger { background: rgba(255, 86, 48, 0.1); color: #ff5630; }
.risk-info { background: rgba(0, 210, 255, 0.1); color: var(--secondary-color); }

.nse-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
    font-family: var(--font-code);
}

.nse-short-desc {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.nse-details {
    font-size: 0.85rem;
    color: var(--text-dim);
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--border-color);
}

.nse-usage {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nse-usage label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.nse-usage code {
    background: #000;
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-code);
    color: #4cd964;
    font-size: 0.8rem;
    word-break: break-all;
}

.copy-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    align-self: flex-end;
    transition: 0.2s;
}

.copy-small:hover {
    background: #fff;
    color: #000;
}

.nse-inject-btn {
    background: var(--accent-gradient);
    border: none;
    color: var(--bg-color);
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    margin-top: auto;
    transition: 0.3s;
}

.nse-inject-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .nse-grid {
        grid-template-columns: 1fr;
    }
}
    font-size: 0.9rem;
}

.tag-def {
    background: rgba(255, 62, 62, 0.1);
    color: #ff3e3e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* History Sidebar & Panel Layout */
.panel-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.panel-body { flex: 1; }

.history-sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 700px;
}

.wizard-input-group {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.wizard-input-group input:focus {
    border-color: var(--primary-color);
    background: rgba(132, 0, 255, 0.05);
    outline: none;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.history-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 127, 0.05);
}

.history-item h4 { font-size: 0.85rem; color: #fff; margin-bottom: 4px; }
.history-item span { font-size: 0.7rem; color: var(--text-dim); }

.interpreter-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .panel-layout { flex-direction: column; }
    .history-sidebar { width: 100%; max-height: 400px; }
}

@media (max-width: 1024px) {
    /* ... existing media queries ... */
    .search-container { width: 180px; }
    .menu-btn { display: block; }
    main { padding: 0 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 2.5rem 1.5rem; }
    .auditor-tabs { flex-direction: column; }
    .intentions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .brand-description { margin: 0 auto; }
}

@media (max-width: 480px) {
    .search-container { display: none; }
    .hero h1 { font-size: 1.8rem; }
}

/* NSE Safety Toggle & Advice */
.nse-safety-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.switch-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ff5630;
}

input:focus + .slider {
    box-shadow: 0 0 1px #ff5630;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.safety-tip {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nse-usage-advice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0.4;
    transition: 1.0s;
}

.nse-usage-advice.active-intrusive {
    opacity: 1;
}

.advice-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.advice-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.advice-card ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.advice-card.safe h4 { color: var(--primary-color); }
.advice-card.intrusive h4 { color: #ff5630; }

.advice-card.safe {
    border-left: 4px solid var(--primary-color);
}

.advice-card.intrusive {
    border-left: 4px solid #ff5630;
}

@media (max-width: 768px) {
    .nse-usage-advice {
        grid-template-columns: 1fr;
    }
}

/* Host Discovery Section Styles */
.discover-section {
    padding-bottom: 5rem;
}

.discovery-assistant {
    margin-bottom: 3rem;
}

.assistant-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
}

.assistant-input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.assistant-input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    width: 100%;
    transition: 0.3s;
}

.assistant-input-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    outline: none;
}

.recommendation-box {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.recommendation-box.active.success { border-left: 5px solid var(--primary-color); background: rgba(0, 255, 127, 0.05); }
.recommendation-box.active.warning { border-left: 5px solid #ffab00; background: rgba(255, 171, 0, 0.05); }
.recommendation-box.active.danger { border-left: 5px solid #ff5630; background: rgba(255, 86, 48, 0.05); }
.recommendation-box.active.info { border-left: 5px solid var(--secondary-color); background: rgba(0, 210, 255, 0.05); }

.decision-block {
    margin-bottom: 4rem;
}

.decision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.decision-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.decision-item:hover, .decision-item.active {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.decision-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.decision-item h4 { color: var(--secondary-color); margin-bottom: 0.5rem; font-size: 1.1rem; }
.decision-item p { font-size: 0.85rem; color: var(--text-dim); }

.discovery-level {
    margin-bottom: 3rem;
}

.level-header {
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.level-header.basico { background: rgba(0, 255, 127, 0.1); color: var(--primary-color); }
.level-header.intermedio { background: rgba(255, 171, 0, 0.1); color: #ffab00; }
.level-header.avanzado { background: rgba(255, 86, 48, 0.1); color: #ff5630; }

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.discovery-card {
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: 0.3s;
}

.discovery-card:hover { border-color: var(--secondary-color); transform: translateY(-5px); }

.disc-name { font-weight: 800; color: #fff; font-size: 1.1rem; }
.disc-cmd { background: #000; padding: 10px; border-radius: 8px; color: var(--primary-color); font-family: var(--font-code); }
.disc-detail { background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; font-size: 0.85rem; color: var(--text-dim); }
.disc-label { font-weight: 800; color: #fff; text-transform: uppercase; font-size: 0.7rem; }
.disc-example { border-top: 1px solid var(--border-color); padding-top: 1rem; }
.disc-example label { font-size: 0.7rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; margin-bottom: 5px; display: block; }
.disc-limit { font-size: 0.8rem; color: #ff5630; background: rgba(255, 86, 48, 0.1); padding: 8px; border-radius: 6px; }

@media (max-width: 1024px) {
    .discovery-grid { grid-template-columns: 1fr; }
}
