/* --- VARIABLES DE ESTILO CYBER CIAN (MODO WARLORD) --- */
:root {
    --bg-deep: #020408;
    --bg-card: #0a0f18;
    --text-main: #f1f5f9;
    --text-muted: #64748b;
    --glow-cyan: #00f2ff;
    --glow-cyan-alt: #0088ff;
    --primary-btn: #00f2ff;
    --shadow-cyan: 0 0 25px rgba(0, 242, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 50%, #0a192f 0%, #020408 100%);
}

/* Header Estilo Terminal */
header {
    margin-bottom: 2rem;
    text-align: center;
}

.status-bar {
    font-size: 10px;
    font-family: 'JetBrains Mono';
    color: var(--glow-cyan);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--glow-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-cyan);
    margin-right: 5px;
    animation: pulse 2s infinite;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.app-title span {
    color: var(--glow-cyan);
    text-shadow: 0 0 15px var(--glow-cyan);
}

/* Card Rediseñada */
.card {
    background-color: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 460px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 242, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.icon-stars {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--glow-cyan));
}

h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--text-main);
}

.description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.description b {
    color: var(--glow-cyan);
}

/* Grid de Botones */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2rem;
}

.btn-generate {
    background: linear-gradient(135deg, var(--glow-cyan), var(--glow-cyan-alt));
    color: #000;
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.5);
    filter: brightness(1.1);
}

.btn-silk-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #fff;
    padding: 12px 5px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-silk-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Modales */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a0f18;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glow-cyan);
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Credenciales */
.credentials-zone {
    background: #000;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px dashed var(--glow-cyan);
    font-family: 'JetBrains Mono';
}

.credential-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.credential-item .label {
    color: var(--glow-cyan);
}

.credential-item .value {
    color: #fff;
    font-weight: 700;
}

/* Tutos */
.tuto-list {
    margin-bottom: 20px;
}

.tuto-link {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    border-radius: 8px;
    gap: 10px;
}

.tuto-tag {
    background: var(--glow-cyan);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tuto-title {
    font-size: 13px;
    color: #fff;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

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

.loader {
    display: none;
    margin: 20px auto;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 242, 255, 0.1);
    border-top-color: var(--glow-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}