/* Variables de color de la nueva paleta */
:root {
    --primary-color: #8b5cf6; /* Morado */
    --secondary-color: #0ea5e9; /* Celeste */
    --accent-red: #e11d48; /* Rojo pasión */
    --bg-color: #09090b; /* Negro profundo para fondo */
    --card-bg: #18181b; /* Negro más claro para tarjetas */
    --text-main: #ffffff; /* Blanco puro para máximo contraste */
    --text-muted: #e2e8f0; /* Gris muy claro para mejor lectura */
}

/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    
    /* Flexbox para mantener el footer siempre abajo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* Configuración para la imagen de fondo */
    background-image: url('imagenes/logo_fondo.png'); /* <-- Actualizado a tu nuevo fondo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    /* Esto oscurece un poco la imagen de fondo para que se pueda leer el texto */
    background-color: rgba(9, 9, 11, 0.45); /* Más transparente para lucir el nuevo fondo */
    background-blend-mode: overlay;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(24, 24, 27, 0.55); /* Navbar transparente */
    backdrop-filter: blur(12px); /* Efecto borroso (cristal) */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 45px; /* Tamaño del logo */
    height: auto;
    border-radius: 8px; /* Opcional */
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem; /* Separación entre las opciones */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.1);
}

.nav-links a.active {
    color: white;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(14, 165, 233, 0.18));
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.14);
}

.nav-links .hidden-panel-link {
    position: relative;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin-left: -1rem;
    padding: 0;
    opacity: 0.14;
    color: transparent;
    overflow: hidden;
}

.nav-links .hidden-panel-link i {
    color: var(--text-main);
}

.nav-links .hidden-panel-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nav-links .hidden-panel-link:hover,
.nav-links .hidden-panel-link:focus {
    opacity: 1;
    color: white;
}

/* Control de páginas sin recargar (SPA) */
.page-section {
    display: none !important;
}

.page-section.active {
    display: block !important;
    animation: fadeInBody 0.4s ease-in-out;
}

#inicio.active {
    display: flex !important;
}

@keyframes fadeInBody {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.page-section.fade-out {
    animation: fadeOutBody 0.3s ease-in-out;
}

@keyframes fadeOutBody {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Sección de Bienvenida (Hero) */
.hero-section {
    display: flex;
    flex-direction: column; /* Apila las tarjetas una debajo de otra */
    gap: 2.5rem; /* Espacio entre la bienvenida y las redes */
    justify-content: center;
    align-items: center;
    padding: 5rem 5%;
    flex-grow: 1; /* Esto ayuda a centrar la tarjeta verticalmente */
}

.hero-card {
    text-align: center;
    max-width: 800px;
    padding: 4rem 3rem;
}

.hero-card h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-card h1 span {
    color: var(--primary-color);
}

.hero-card p {
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    line-height: 1.8;
    font-weight: 500;
}

/* Tarjeta de Redes Sociales */
.social-card {
    padding: 2rem 3rem;
    width: 100%;
    max-width: 800px;
}

.social-copy {
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-kicker {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.social-title {
    font-size: 2rem;
    color: var(--text-main);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Redes Sociales en la página de inicio */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 165px;
    padding: 0.95rem 1.5rem;
    border-radius: 50px; /* Forma de píldora redondeada */
    text-decoration: none;
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05); /* Fondo casi invisible */
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.social-btn i {
    width: 1.15rem;
    text-align: center;
    font-size: 1.1rem;
}

.social-btn:hover {
    transform: translateY(-4px); /* Se elevan un poco al pasar el cursor */
    color: white;
}

/* Colores de marca al pasar el cursor */
.social-btn.tiktok:hover {
    background-color: #000000;
    border-color: #ff0050;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.3);
}

.social-btn.youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-btn.twitch:hover {
    background-color: #9146FF;
    border-color: #9146FF;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3);
}

.social-btn.discord:hover {
    background-color: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* Sección de Proyectos */
.proyectos-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.seccion-titulo {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.plugin-cards {
    grid-template-columns: 1fr;
}

.plugin-cards > .card {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    grid-template-areas:
        "title content"
        "action content";
    gap: 1.25rem 2rem;
    align-items: start;
}

.plugin-cards > .card .card-title {
    grid-area: title;
    margin-bottom: 0;
}

.plugin-cards > .card .card-content {
    grid-area: content;
    margin-bottom: 0;
}

.plugin-cards > .card .btn {
    grid-area: action;
    align-self: end;
    margin-top: 0;
}

/* Contenedor de tarjetas apiladas (para Proyectos) */
.stacked-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Tarjetas (Cards) */
.card {
    background: rgba(15, 15, 18, 0.7); /* Fondo más oscuro para que resalte el texto */
    backdrop-filter: blur(16px); /* Efecto cristal más fuerte para leer bien el texto */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-red);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.15);
}

/* Estilos especiales para tarjetas grandes con imagen */
.large-card {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

.project-logo {
    width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.card-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid #3f3f46;
    padding-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content {
    flex-grow: 1;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.card-content strong {
    color: var(--secondary-color);
}

/* Nuevo estilo para los subtítulos de las tarjetas */
.card-subtitle {
    color: var(--text-main);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.15rem;
    border-bottom: 1px dashed #3f3f46;
    padding-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.card-content ul {
    list-style: none;
}

.card-content ul li {
    margin-bottom: 1.2rem; /* Más espacio para leer mejor */
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

/* Estilos para destacar comandos y permisos */
.card-content code {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--secondary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    font-weight: bold;
}

/* Botones */
.btn {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-top: auto;
}

.btn:hover {
    background-color: var(--accent-red);
    transform: scale(1.02);
}

.btn-disabled,
.btn-disabled:hover {
    background-color: rgba(113, 113, 122, 0.45);
    color: rgba(255, 255, 255, 0.78);
    cursor: not-allowed;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(9, 9, 11, 0.6); /* Footer transparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-muted);
    border-top: 1px solid #27272a;
    margin-top: auto; /* Esto empuja el footer hasta el fondo de la pantalla */
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-card h1 { font-size: 2.5rem; }
    .hero-card p { font-size: 1.1rem; }
    .seccion-titulo { font-size: 2rem; }
    .navbar { flex-direction: column; gap: 1rem; }
    
    .large-card {
        flex-direction: column;
        text-align: center;
    }

    .plugin-cards > .card {
        display: flex;
        flex-direction: column;
    }

    .plugin-cards > .card .card-title {
        margin-bottom: 1rem;
    }

    .plugin-cards > .card .card-content {
        margin-bottom: 2rem;
    }

    .social-card {
        padding: 1.5rem;
    }

    .social-title {
        font-size: 1.6rem;
    }

    .social-btn {
        width: 100%;
        min-width: 0;
    }
}

/* New style for wiki main content */
.wiki-main-content {
    flex-grow: 1;
    padding: 2.5rem 5%; /* Adjust padding as needed, similar to other sections */
    max-width: 1400px; /* Max width for content */
    margin: 0 auto; /* Center the content */
    width: 100%; /* Ensure it takes full width within its max-width */
}

/* Wiki Layout */
.wiki-layout {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: flex-start; /* Align items to the top */
}

.wiki-sidebar {
    flex: 0 0 280px; /* Fixed width for sidebar */
    padding: 1.5rem;
    position: sticky; /* Make sidebar sticky */
    top: calc(var(--navbar-height) + 1.5rem); /* Adjust based on navbar height */
    max-height: calc(100vh - var(--navbar-height) - 3rem); /* Max height to fit viewport */
    overflow-y: auto; /* Enable scrolling if content overflows */
}

.wiki-sidebar .card-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #3f3f46;
}

.wiki-nav-list {
    list-style: none;
    padding: 0;
}

.wiki-nav-item {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block; /* Ensure full clickable area */
}

.wiki-nav-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
}

.wiki-nav-item.active {
    background-color: var(--primary-color);
    color: var(--text-main);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.wiki-content {
    flex-grow: 1;
    padding: 2.5rem;
    min-height: 600px; /* Ensure content area has a minimum height */
}

.wiki-content-section {
    display: none;
    animation: fadeInBody 0.4s ease-in-out;
}

.wiki-content-section.active {
    display: block;
}

/* Styles for tables within wiki */
.table-responsive {
    overflow-x: auto; /* Make tables scrollable on small screens */
    margin-top: 1.5rem;
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.wiki-table th,
.wiki-table td {
    border: 1px solid #3f3f46;
    padding: 1rem;
    text-align: left;
}

.wiki-table th {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.wiki-table tr:nth-child(even) {
    background-color: rgba(24, 24, 27, 0.5); /* Slightly different background for even rows */
}

.wiki-table tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.08);
}

/* Small subtitle for detailed sections */
.card-subtitle-small {
    color: var(--text-main);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.05rem;
    border-bottom: 1px dotted #3f3f46;
    padding-bottom: 0.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle-small i {
    color: var(--secondary-color);
}

/* Adjustments for card-content ul li in wiki */
.wiki-content .card-content ul li {
    margin-bottom: 0.8rem; /* Less space for denser lists */
    align-items: flex-start;
}

.wiki-content .card-content ul li i {
    color: var(--primary-color); /* Icon color */
    margin-top: 0.2rem; /* Align icon with text */
}

/* Small button for wiki links */
.btn-small {
    display: inline-block;
    text-align: center;
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--primary-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-top: 0.5rem;
    border: 1px solid var(--primary-color);
}

.btn-small:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

@media (max-width: 768px) {
    .navbar {
        --navbar-height: 120px; /* Adjust if navbar wraps on smaller screens */
    }
    .wiki-layout {
        flex-direction: column;
    }

    .wiki-sidebar {
        flex: none;
        width: 100%;
        position: static; /* Remove sticky behavior on small screens */
        max-height: none;
        overflow-y: visible;
    }

    .wiki-nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .wiki-nav-item {
        flex: 1 1 auto; /* Allow items to grow and shrink */
        text-align: center;
        margin-bottom: 0;
    }

    .wiki-content {
        width: 100%;
        padding: 1.5rem;
    }
}

/* Wiki Section */
.wiki-page-section {
    width: 100%;
}

.wiki-section-header {
    max-width: 820px;
    margin: 0 auto 3rem;
    text-align: center;
}

.wiki-section-title {
    margin-bottom: 1rem;
}

.wiki-kicker {
    color: var(--secondary-color);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.wiki-intro,
.wiki-lead,
.wiki-note {
    color: var(--text-muted);
    font-size: 1.02rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.55);
}

.wiki-highlight {
    display: inline;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    text-shadow: inherit;
    font-weight: inherit;
}

.wiki-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.wiki-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.wiki-plugin-card {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    padding: 1.25rem;
    background: rgba(15, 15, 18, 0.7);
    border: 1px solid #27272a;
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wiki-index-label {
    margin: 0 0 0.35rem;
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wiki-index-label:first-child {
    margin-top: 0;
}

.wiki-tab-btn {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.82rem 0.95rem;
    cursor: pointer;
    border: 1px solid #27272a;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wiki-tab-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
    color: var(--text-main);
    transform: translateY(-2px);
}

.wiki-tab-btn.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(14, 165, 233, 0.18));
    border-color: rgba(14, 165, 233, 0.24);
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(5, 8, 22, 0.25);
}

.wiki-content-integrated {
    display: grid;
    gap: 1.5rem;
}

.wiki-panel {
    display: none;
    animation: fadeInBody 0.45s ease-in-out;
}

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

.wiki-hero {
    margin-bottom: 1.5rem;
    padding: 1.8rem;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.14), transparent 40%),
        rgba(15, 15, 18, 0.7);
    border: 1px solid #27272a;
    border-radius: 22px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wiki-hero-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.wiki-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

.wiki-lead {
    margin-top: 0.5rem;
    flex-basis: 100%;
    max-width: 900px;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #f5f7ff;
}

.wiki-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 1.5rem;
}

.wiki-command-stack {
    grid-template-columns: 1fr;
}

.wiki-data-grid > .wiki-surface:has(.table-responsive),
.wiki-data-grid > .wiki-surface:has(.wiki-code-block),
.wiki-data-grid > .wiki-surface:has(.wiki-list li:nth-child(7)) {
    grid-column: 1 / -1;
}

.wiki-surface {
    background: rgba(15, 15, 18, 0.7);
    border: 1px solid #27272a;
    border-radius: 20px;
    padding: 1.6rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wiki-surface .card-subtitle {
    margin-top: 0;
}

.wiki-surface p,
.wiki-surface li,
.wiki-surface td {
    color: #eef2ff;
}

.wiki-surface strong {
    color: var(--secondary-color);
    font-weight: 700;
}

.wiki-table {
    margin-top: 0.5rem;
    min-width: 680px;
}

.wiki-surface:has(.wiki-table) .table-responsive {
    margin-top: 0.85rem;
}

.wiki-surface:has(.wiki-list li:nth-child(7)):not(:has(.wiki-code-block)) .wiki-list {
    columns: 2 280px;
    column-gap: 2rem;
}

.wiki-surface:has(.wiki-list li:nth-child(7)):not(:has(.wiki-code-block)) .wiki-list li {
    break-inside: avoid;
}

.wiki-table th,
.wiki-table td {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.wiki-table th {
    background: rgba(14, 165, 233, 0.08);
}

.wiki-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.wiki-table td:first-child {
    color: var(--text-main);
    font-weight: 700;
}

.wiki-note {
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid rgba(14, 165, 233, 0.55);
    border-radius: 12px;
    background: rgba(9, 9, 11, 0.45);
}

.wiki-steps {
    list-style: decimal;
    padding-left: 1.35rem;
    color: var(--text-muted);
}

.wiki-steps li {
    margin-bottom: 1rem;
}

.wiki-list {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.wiki-list li {
    margin-bottom: 0.8rem;
}

.wiki-steps li::marker,
.wiki-list li::marker {
    color: var(--secondary-color);
    font-weight: 700;
}

.wiki-list-nested {
    margin-top: 0.85rem;
}

.wiki-code-block {
    background-color: rgba(15, 23, 42, 0.88);
    color: #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    overflow-x: auto;
    margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 960px) {
    .wiki-index {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wiki-section-header {
        margin-bottom: 2rem;
    }

    .wiki-plugin-card {
        padding: 1rem;
    }

    .wiki-tab-btn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .wiki-hero,
    .wiki-surface {
        padding: 1.25rem;
    }
}

/* Catalogo y panel de plugins */
.plugin-hub-shell,
.plugin-detail-shell,
.plugin-admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.plugin-hub-heading,
.plugin-detail-header,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    background: rgba(24, 24, 27, 0.82);
    border: 1px solid rgba(139, 92, 246, 0.26);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.plugin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plugin-hub-heading h1,
.plugin-detail-copy h1,
.admin-topbar h1 {
    margin: 4px 0 6px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.plugin-hub-heading p,
.plugin-detail-copy p,
.admin-help {
    color: var(--text-muted);
    max-width: 720px;
}

.plugin-admin-shortcut,
.ghost-button {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.plugin-admin-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.plugin-hub-shell .btn,
.plugin-detail-shell .btn,
.plugin-admin-shell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    border: 0;
}

.plugin-hub-shell .btn:hover,
.plugin-detail-shell .btn:hover,
.plugin-admin-shell .btn:hover,
.plugin-admin-shortcut:hover {
    background: var(--accent-red);
    color: #ffffff;
}

.plugin-browse-layout,
.plugin-detail-layout,
.admin-editor-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.plugin-browse-layout-flat {
    grid-template-columns: 1fr;
}

.plugin-detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.plugin-filter-panel,
.plugin-results-panel,
.plugin-detail-main,
.plugin-detail-sidebar,
.admin-sidebar,
.admin-editor-main,
.admin-auth-panel,
.plugin-empty-state {
    background: rgba(24, 24, 27, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

.plugin-filter-panel,
.admin-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 14px;
}

.plugin-search-label,
.plugin-filter-group span,
.side-label {
    display: block;
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.plugin-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(9, 9, 11, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.plugin-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font-size: 0.95rem;
}

.plugin-search-inline {
    width: min(360px, 100%);
}

.plugin-filter-group {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.plugin-filter-group a,
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 9px 10px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 750;
}

.plugin-filter-group a:hover,
.admin-sidebar a:hover,
.plugin-filter-group a.active,
.admin-sidebar a.active {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.plugin-filter-group a.active,
.admin-sidebar a.active {
    box-shadow: inset 3px 0 0 var(--secondary-color);
}

.plugin-results-panel,
.plugin-detail-main,
.admin-editor-main {
    padding: 16px;
}

.plugin-home-panel {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.plugin-results-top,
.plugin-row,
.version-item,
.admin-savebar,
.admin-top-actions,
.admin-inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.plugin-results-top {
    padding: 4px 4px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plugin-results-top h2 {
    font-size: 1.35rem;
}

.plugin-results-top p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.plugin-list,
.version-list,
.admin-version-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.plugin-row {
    align-items: stretch;
    padding: 14px;
    background: rgba(9, 9, 11, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
}

.plugin-row[hidden] {
    display: none;
}

.plugin-row-icon,
.plugin-detail-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(14, 165, 233, 0.78)),
        rgba(24, 24, 27, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.2);
    font-size: 1.2rem;
    font-weight: 900;
}

.plugin-detail-icon {
    width: 96px;
    height: 96px;
    font-size: 1.55rem;
}

.plugin-row-icon img,
.plugin-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plugin-row-main {
    min-width: 0;
    flex: 1;
}

.plugin-row-title,
.version-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.plugin-row-title a,
.plugin-back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.plugin-row-title a {
    font-size: 1.22rem;
}

.plugin-row-main p {
    color: #d8e2f0;
    margin: 4px 0 8px;
}

.plugin-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #c7d2e2;
    font-size: 0.88rem;
}

.tag-chip,
.version-pill,
.release-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.26);
    color: #dce9ff;
    font-size: 0.78rem;
    font-weight: 800;
}

.platform-chip {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.28);
}

.version-pill,
.release-type.release {
    color: #b8f7d0;
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.32);
}

.plugin-row-actions,
.plugin-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compact-button,
.download-button,
.danger-button,
.file-control,
.icon-button,
.admin-auth-panel .btn {
    cursor: pointer;
}

.compact-button {
    min-width: max-content;
    padding: 10px 12px;
}

.download-button {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #03100a;
    font-weight: 900;
}

.plugin-hub-shell .download-button:hover,
.plugin-detail-shell .download-button:hover {
    background: linear-gradient(135deg, #16a34a, #0284c7);
    color: #ffffff;
}

.danger-button,
.icon-button.danger {
    background: rgba(225, 29, 72, 0.14);
    border-color: rgba(225, 29, 72, 0.34);
    color: #fecdd3;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    text-decoration: none;
}

.plugin-detail-header {
    align-items: stretch;
}

.plugin-detail-copy {
    flex: 1;
    min-width: 0;
}

.plugin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.plugin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plugin-tabs button,
.markdown-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.plugin-tabs button.active,
.markdown-toolbar button:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.34);
}

.plugin-tab-panel,
.admin-pane {
    display: none;
}

.plugin-tab-panel.active,
.admin-pane.active {
    display: block;
}

.plugin-hero-media {
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 9, 11, 0.55);
}

.plugin-hero-media img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.plugin-markdown {
    color: #dbeafe;
}

.plugin-markdown h1,
.plugin-markdown h2,
.plugin-markdown h3,
.plugin-markdown h4 {
    margin: 20px 0 10px;
    color: #ffffff;
    line-height: 1.18;
}

.plugin-markdown p,
.plugin-markdown ul,
.plugin-markdown pre {
    margin: 0 0 14px;
}

.plugin-markdown ul {
    padding-left: 22px;
}

.plugin-markdown a {
    color: var(--secondary-color);
}

.plugin-markdown img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plugin-markdown code,
.plugin-markdown pre {
    background: rgba(0, 0, 0, 0.34);
    border-radius: 6px;
}

.plugin-markdown code {
    padding: 2px 5px;
}

.plugin-markdown pre {
    padding: 12px;
    overflow: auto;
}

.plugin-gallery-grid,
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.plugin-gallery-grid figure,
.admin-gallery-grid article {
    overflow: hidden;
    background: rgba(9, 9, 11, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.plugin-gallery-grid img,
.admin-gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.plugin-gallery-grid figcaption,
.admin-gallery-grid form {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.plugin-gallery-grid figcaption span {
    display: block;
    color: var(--text-muted);
}

.version-item {
    padding: 14px;
    background: rgba(9, 9, 11, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.modrinth-version-form {
    margin-bottom: 18px;
}

.version-compose-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
}

.version-compose-main,
.version-publish-panel {
    display: grid;
    gap: 14px;
}

.version-card-section {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: rgba(9, 9, 11, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.version-card-section h3 {
    margin: 0;
    font-size: 1.08rem;
}

.sticky-version-box {
    position: sticky;
    top: 96px;
}

.version-release-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.version-release-options label {
    position: relative;
    display: block;
    cursor: pointer;
}

.version-release-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.version-release-options span {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    font-weight: 900;
}

.version-release-options small {
    color: #cbd5e1;
    font-size: 0.78rem;
}

.version-release-options input:checked + span {
    border-color: rgba(34, 197, 94, 0.48);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(14, 165, 233, 0.14));
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.version-drop-zone {
    display: grid !important;
    place-items: center;
    gap: 8px;
    min-height: 150px;
    padding: 18px;
    text-align: center;
    border: 1px dashed rgba(14, 165, 233, 0.56);
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.08);
    cursor: pointer;
}

.version-drop-zone i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.version-drop-zone strong {
    font-size: 1rem;
}

.version-drop-zone span {
    color: #cbd5e1;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.version-drop-zone.drag-over {
    border-color: rgba(34, 197, 94, 0.76);
    background: rgba(34, 197, 94, 0.12);
}

.version-drop-zone input {
    display: none;
}

.compact-markdown {
    min-height: 220px;
}

.version-submit-bar {
    padding-top: 0;
    border-top: 0;
}

.version-submit-bar .btn {
    width: 100%;
}

.version-dependency-note {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.45;
}

.version-manager-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.version-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.version-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.version-count-label {
    color: #cfe2ff;
    margin-bottom: 12px;
}

.version-table {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.58);
}

.version-table-head,
.version-table-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(130px, 1fr) minmax(140px, 1.15fr) 104px 86px 116px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
}

.version-table-head {
    color: #c7d2e2;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.version-table-row + .version-table-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.version-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.version-name-cell strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
}

.version-name-cell em {
    display: block;
    color: #bbf7d0;
    font-size: 0.78rem;
    font-style: normal;
}

.version-type-dot {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 950;
    background: rgba(34, 197, 94, 0.28);
}

.version-type-dot.beta {
    background: rgba(14, 165, 233, 0.28);
}

.version-type-dot.alpha {
    background: rgba(225, 29, 72, 0.28);
}

.download-icon {
    color: #22c55e;
}

.version-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.version-modal-overlay[hidden] {
    display: none;
}

.version-modal-card {
    width: min(760px, 100%);
    max-height: min(88vh, 780px);
    overflow: auto;
    background: #101014;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.version-wizard-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: #101014;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-stepper {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94a3b8;
    font-weight: 950;
}

.version-stepper button {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    cursor: pointer;
}

.version-stepper button.active {
    color: #ffffff;
}

.version-step-panel {
    display: none;
    padding: 20px;
}

.version-step-panel.active {
    display: grid;
    gap: 14px;
}

.version-drop-zone-large {
    min-height: 190px;
    border-radius: 8px;
}

.version-drop-zone-large i {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid #22c55e;
    border-radius: 18px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.version-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.metadata-summary-block {
    display: grid;
    gap: 10px;
}

.metadata-summary-block > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metadata-summary-block h3 {
    margin: 0;
}

.metadata-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #cfe2ff;
    font-weight: 900;
    cursor: pointer;
    padding: 4px 0;
}

.metadata-edit-link:hover,
.metadata-edit-link:focus-visible {
    color: #ffffff;
}

.metadata-file-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #cfe2ff;
}

.choice-summary,
.choice-added-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.44);
}

.choice-summary.empty,
.choice-added-box.empty {
    color: #94a3b8;
}

.choice-empty {
    color: #aab8c9;
    font-weight: 700;
}

.metadata-choice-panel {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.36);
}

.metadata-choice-panel[hidden] {
    display: none;
}

.choice-tab-row,
.choice-version-head,
.choice-added-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.choice-version-head,
.choice-added-head {
    justify-content: space-between;
}

.choice-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #cfe2ff;
    font-weight: 900;
    cursor: pointer;
}

.choice-tab.active {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.12);
}

.choice-token-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-token,
.choice-added-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    color: #dbeafe;
    font-weight: 850;
}

.choice-token {
    cursor: pointer;
}

.choice-token.selected {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.52);
    background: rgba(34, 197, 94, 0.13);
}

.choice-token.selected::before {
    content: "\f00c";
    font: var(--fa-font-solid);
}

.choice-added-chip button {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.choice-added-head strong {
    color: #ffffff;
}

.choice-added-head button {
    border: 0;
    background: transparent;
    color: #cfe2ff;
    font-weight: 900;
    cursor: pointer;
}

.choice-search {
    position: relative;
    flex: 1 1 260px;
    margin: 0;
}

.choice-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

.choice-search input {
    padding-left: 38px !important;
}

.choice-version-list {
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.choice-version-group {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.choice-version-group h4 {
    margin: 0;
    color: #bcd7ff;
    font-size: 0.95rem;
}

.version-grid .choice-token {
    min-width: 76px;
    justify-content: center;
    border-radius: 8px;
}

.loader-paper,
.loader-folia {
    color: #8cff72;
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(34, 197, 94, 0.1);
}

.loader-purpur {
    color: #d8b4fe;
    border-color: rgba(139, 92, 246, 0.34);
    background: rgba(139, 92, 246, 0.12);
}

.loader-spigot,
.loader-bukkit,
.loader-sponge,
.loader-bungeecord {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.11);
}

.loader-velocity,
.loader-waterfall {
    color: #7dd3fc;
    border-color: rgba(14, 165, 233, 0.34);
    background: rgba(14, 165, 233, 0.12);
}

.required-mark {
    color: #fb7185;
}

.segmented-release {
    display: flex;
    grid-template-columns: none;
}

.segmented-release label {
    display: inline-flex;
}

.segmented-release span {
    min-height: 48px;
    padding: 10px 20px;
}

.version-wizard-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.version-wizard-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #cfe2ff;
    font-weight: 900;
    cursor: pointer;
}

.version-title-line h3 {
    margin: 0;
}

.release-type.beta {
    color: #dbeafe;
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.3);
}

.release-type.alpha {
    color: #fecdd3;
    background: rgba(225, 29, 72, 0.16);
    border-color: rgba(225, 29, 72, 0.3);
}

.plugin-side-box {
    padding: 14px;
    background: rgba(24, 24, 27, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.plugin-detail-sidebar {
    display: grid;
    gap: 12px;
    background: transparent;
    border: 0;
}

.plugin-side-box h2 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.chip-wrap,
.side-links,
.details-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-links,
.details-list {
    flex-direction: column;
    align-items: stretch;
}

.side-links a,
.details-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbeafe;
    text-decoration: none;
}

.plugin-empty-state {
    padding: 36px;
    text-align: center;
}

.plugin-empty-state.compact {
    padding: 24px;
}

.plugin-empty-state p {
    color: var(--text-muted);
}

.plugin-admin-shell {
    width: min(1240px, calc(100% - 32px));
}

.admin-auth-panel {
    max-width: 520px;
    margin: 70px auto;
    padding: 24px;
}

.admin-auth-panel form,
.admin-tab-form,
.version-editor-form,
.gallery-upload-form {
    display: grid;
    gap: 16px;
}

.admin-top-actions {
    flex-wrap: wrap;
}

.admin-project-switcher select,
.admin-editor-main input,
.admin-editor-main textarea,
.admin-editor-main select,
.admin-auth-panel input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.64);
    color: #ffffff;
    outline: 0;
}

.admin-editor-main textarea,
.admin-auth-panel textarea {
    resize: vertical;
}

.admin-editor-main input:focus,
.admin-editor-main textarea:focus,
.admin-editor-main select:focus,
.admin-auth-panel input:focus {
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.admin-editor-main label,
.admin-auth-panel label {
    display: grid;
    gap: 7px;
    color: #ffffff;
    font-weight: 800;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-pane h2 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.admin-pane h3 {
    margin: 18px 0 10px;
}

.admin-pane-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.checkbox-grid.compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkbox-grid label,
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(9, 9, 11, 0.42);
    font-weight: 750;
}

.checkbox-grid input,
.checkbox-line input,
.preview-toggle input {
    width: auto;
    min-height: auto;
    accent-color: #22c55e;
}

.preview-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbeafe;
    font-weight: 800;
}

.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.markdown-editor {
    min-height: 430px;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.55;
}

.admin-preview {
    min-height: 430px;
    padding: 16px;
    background: rgba(9, 9, 11, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-icon-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.file-control {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 42px;
    padding: 10px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.file-control.wide {
    width: 100%;
}

.file-control input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.admin-savebar {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-savebar.inline {
    justify-content: flex-end;
}

.admin-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.admin-stat-strip span {
    padding: 14px;
    background: rgba(9, 9, 11, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.admin-stat-strip strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1.35rem;
}

.admin-flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(24, 24, 27, 0.9);
}

.admin-flash.success {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.34);
}

.admin-flash.error {
    color: #fecdd3;
    border-color: rgba(225, 29, 72, 0.38);
}

.gallery-delete-form {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 12px;
}

.delete-project-box {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding: 16px;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.24);
    border-radius: 8px;
}

.align-bottom {
    align-self: end;
}

@media (max-width: 980px) {
    .plugin-browse-layout,
    .plugin-detail-layout,
    .admin-editor-layout,
    .version-compose-layout {
        grid-template-columns: 1fr;
    }

    .plugin-filter-panel,
    .admin-sidebar {
        position: static;
    }

    .plugin-filter-group,
    .admin-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plugin-detail-header,
    .plugin-hub-heading,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sticky-version-box {
        position: static;
    }

    .version-table {
        overflow-x: auto;
    }

    .version-table-head,
    .version-table-row {
        min-width: 840px;
    }
}

@media (max-width: 720px) {
    .plugin-row,
    .version-item,
    .admin-savebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .plugin-row-actions,
    .plugin-detail-actions,
    .admin-top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .form-grid.two,
    .checkbox-grid,
    .checkbox-grid.compact-grid,
    .plugin-gallery-grid,
    .admin-gallery-grid,
    .admin-stat-strip,
    .version-release-options {
        grid-template-columns: 1fr;
    }

    .plugin-hub-shell,
    .plugin-detail-shell,
    .plugin-admin-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 24px;
    }

    .plugin-row-icon,
    .plugin-detail-icon {
        width: 64px;
        height: 64px;
    }

    .version-modal-overlay {
        padding: 8px;
        align-items: stretch;
    }

    .version-modal-card {
        max-height: 96vh;
    }

    .version-wizard-header,
    .version-step-panel {
        padding-inline: 16px;
    }

    .version-stepper {
        flex-wrap: wrap;
    }

    .version-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .version-modal-actions .btn {
        width: 100%;
    }
}
