@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    --bg: #050505;
    --panel: #0b0b0b;
    --panel-2: #0f0f0f;
    --text: #eaeaea;
    --muted: #8a8a8a;
    --border: rgba(255,255,255,0.08);
    --accent: #ffffff;
    --green: #00ff9d;
    --red: #ff4d4d;
    --shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, #111 0%, #050505 60%, #000 100%);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    padding: 20px;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 10px rgba(255,255,255,0.08);
}

.blinking-cursor {
    width: 10px;
    height: 20px;
    background: var(--accent);
    animation: blink 1s infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* INPUT */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
}

textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

textarea:focus {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}

/* BUTTONS */
.controls {
    display: flex;
    gap: 12px;
}

button {
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px;
    background: linear-gradient(180deg, #111, #0a0a0a);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

button:active {
    transform: translateY(0px);
}

/* TERMINAL */
.terminal {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--panel-2);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot:nth-child(1) { background: var(--red); }
.dot:nth-child(2) { background: #ffcc00; }
.dot:nth-child(3) { background: var(--green); }

.terminal-title {
    margin-left: 10px;
    font-size: 11px;
    color: var(--muted);
}

.terminal-body {
    padding: 14px;
    max-height: 380px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* LINE */
.terminal-line {
    display: block;
    margin-bottom: 4px;
}

.terminal-line.success {
    color: var(--green);
}

.terminal-prefix {
    color: #555;
    margin-right: 6px;
}

/* SCROLLBAR */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
 .blurred {
            filter: blur(6px);
            pointer-events: none;
            user-select: none;
        }

        .overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.75);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .modal {
            width: 90%;
            max-width: 520px;
            background: #111;
            border-radius: 12px;
            padding: 28px;
            color: #eee;
            font-family: monospace;
            box-shadow: 0 0 40px rgba(0,0,0,0.8);
            position: relative;
        }

        .modal h2 {
            color: #ffd84d;
            margin-top: 0;
        }

        .tg-btn {
            display: inline-block;
            margin-top: 18px;
            padding: 10px 18px;
            background: #2AABEE;
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: bold;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 14px;
            cursor: pointer;
            font-size: 20px;
            color: #aaa;
        }

.screen { display: none; min-height: 100vh; }
        .active { display: block; }

        .menu {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            gap: 60px;
            flex-direction: column;
        }

        .menu button {
            font-size: 32px;
            padding: 40px 80px;
            cursor: pointer;
        }

        .back-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            padding: 10px 20px;
            z-index: 999;
        }

.menu-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

.menu-header {
    text-align: center;
}

.menu-header h1 {
    font-size: 42px;
    letter-spacing: 4px;
    margin: 0;
}

.menu-header p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 1px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Кнопки как у controls, но крупные */
.menu-grid button {
    font-family: 'JetBrains Mono', monospace;
    padding: 32px;
    border-radius: 8px;
    background: linear-gradient(180deg, #111, #0a0a0a);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.menu-grid button:hover {
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ФУТЕР */
.menu-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Кнопки сервисов */
.footer-btn {
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.footer-btn.github {
    background: #24292e;
}

.footer-btn.telegram {
    background: #2AABEE;
}
