/* ===== TOXIC BLACK GLITCH THEME (Landing) ===== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050505;
    --surface: #0a0a0a;
    --border: #1a1a1a;
    --toxic: #00ff41;
    --toxic-dim: #00cc33;
    --toxic-glow: rgba(0, 255, 65, 0.15);
    --danger: #ff0050;
    --text: #d4d4d4;
    --text-dim: #777;
    --text-body: #aaa;
    --white: #f0f0f0;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-x: hidden;
}

/* ===== 3D CUBES BACKGROUND ===== */
#cubes-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== SCANLINE OVERLAY ===== */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ===== APP CONTAINER ===== */
.app-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

/* ===== LOGO ===== */
.logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--toxic-glow));
}

/* ===== GLITCH TEXT ===== */
.glitch-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    text-align: center;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.glitch-text::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
    color: var(--toxic);
    opacity: 0.6;
}

.glitch-text::after {
    animation: glitch-2 2.5s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
    color: var(--danger);
    opacity: 0.4;
}

@keyframes glitch-1 {
    0%, 90% { transform: translate(0); }
    91% { transform: translate(-2px, 1px); }
    92% { transform: translate(2px, -1px); }
    93%, 100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0%, 85% { transform: translate(0); }
    86% { transform: translate(3px, 0); }
    87% { transform: translate(-3px, 0); }
    88%, 100% { transform: translate(0); }
}

/* ===== PANEL ===== */
.panel {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

/* ===== STEPS ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--toxic);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
}

.step-text strong {
    color: var(--toxic);
}

/* ===== BUTTONS ===== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
}

.btn-full { width: 100%; }

.btn-glow {
    background: var(--toxic);
    color: #000;
    box-shadow: 0 0 30px var(--toxic-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
    transform: translateY(-1px);
}

.btn-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-dim {
    background: rgba(0, 255, 65, 0.08);
    color: var(--toxic);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.btn-dim:hover {
    background: rgba(0, 255, 65, 0.14);
}

.btn-danger {
    background: rgba(255, 0, 80, 0.08);
    color: var(--danger);
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 12px;
    border-radius: 10px;
}

/* ===== KEY RESULT ===== */
.key-result {
    display: none;
    margin-top: 16px;
}

.key-result.visible { display: block; }

.copy-field {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.copy-field input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--toxic-dim);
    font-family: inherit;
    font-size: 11px;
    outline: none;
}

.copy-field input:focus { border-color: var(--toxic); }

.copy-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn:hover {
    border-color: var(--toxic);
    color: var(--toxic);
}

.copy-btn.copied {
    border-color: var(--toxic);
    color: var(--toxic);
    background: rgba(0, 255, 65, 0.05);
}

/* ===== STATUS ===== */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-ok {
    background: rgba(0, 255, 65, 0.1);
    color: var(--toxic);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 15px var(--toxic-glow);
}

.status-warn {
    background: rgba(255, 200, 0, 0.1);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

/* ===== APPS LIST ===== */
.apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.app-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.app-card:hover {
    border-color: rgba(0, 255, 65, 0.25);
    background: rgba(0, 255, 65, 0.03);
}

.app-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.app-platform {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-icon {
    color: var(--toxic);
    opacity: 0.7;
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ===== TEXT ===== */
h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--toxic);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.desc {
    color: var(--text-body);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.text-center { text-align: center; }

/* ===== TIMER ===== */
.timer {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    margin-top: 8px;
}

.timer strong {
    color: var(--toxic);
}

/* ===== CTA BLOCK ===== */
.cta-block {
    text-align: center;
    padding: 20px;
}

.cta-block p {
    font-size: 13px;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ===== LANG SELECTOR ===== */
.lang-selector {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
}

.lang-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text);
    border-color: #2a2a2a;
}

.lang-btn.active {
    background: rgba(0, 255, 65, 0.1);
    color: var(--toxic);
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 10px var(--toxic-glow);
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
    color: var(--danger);
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    display: none;
}

.error-msg.visible { display: block; }

/* ===== LOADING ===== */
.spinner {
    display: none;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--toxic);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.visible { display: inline-block; }

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

/* ===== KEY INFO ===== */
.key-info {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.key-info-item {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.key-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--toxic);
}

.key-info-label {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
    .apps-grid { grid-template-columns: 1fr; }
    .key-info { flex-direction: column; }
}
