:root {
    --bg-deep: #0f0f14; --panel-bg: #1a1b26; --panel-border: #292e42;
    --metal-light: #414868; --metal-dark: #16161e;
    --accent-cyan: #7aa2f7; --accent-green: #73daca; --accent-purple: #bb9af7;
    --text-main: #c0caf5; --text-dim: #565f89;
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

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

.delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247, 118, 142, 0.1);
    color: #f7768e;
    border: 1px solid #f7768e;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #f7768e;
    color: #0f0f14;
}

.delete-btn:active {
    transform: translateY(2px);
}

body {
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 50% 0%, #1a1b26 0%, #0f0f14 80%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-main); font-family: 'Segoe UI', 'Roboto', sans-serif; font-size: 14px; line-height: 1.6; padding: 40px 20px; min-height: 100vh;
}

.chassis { max-width: 960px; margin: 0 auto; background: linear-gradient(145deg, #2a2e3f, #1e2130); border-radius: 16px; padding: 3px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1); border: 1px solid #3b405a; }
.chassis.chassis-wide { max-width: 1200px; }
.inner-panel { background: var(--panel-bg); border-radius: 14px; padding: 30px; box-shadow: var(--shadow-inner); }

.header-plate { background: linear-gradient(180deg, #3b405a 0%, #24283b 100%); border-radius: 10px; padding: 25px; text-align: center; border: 1px solid #414868; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 12px rgba(0, 0, 0, 0.4); margin-bottom: 30px; position: relative; overflow: hidden; }
.header-plate::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); }
.header-title { font-family: 'Courier New', monospace; font-size: 28px; font-weight: bold; color: var(--accent-cyan); text-shadow: 0 0 15px rgba(122, 162, 247, 0.5), 0 2px 0 rgba(0,0,0,0.8); letter-spacing: 3px; text-transform: uppercase; }
.header-subtitle { font-size: 12px; color: var(--text-dim); margin-top: 8px; letter-spacing: 1px; }

.nav-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; align-items: center; }
.tech-btn { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #414868 0%, #292e42 100%); color: var(--text-main); text-decoration: none; padding: 10px 20px; border-radius: 8px; font-size: 12px; font-weight: bold; border: 1px solid #16161e; box-shadow: 0 4px 0 #16161e, 0 6px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: all 0.1s ease; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.tech-btn:hover { background: linear-gradient(180deg, #4b5275 0%, #323850 100%); color: #fff; text-shadow: 0 0 8px var(--accent-cyan); transform: translateY(-1px); }
.tech-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #16161e, inset 0 3px 6px rgba(0, 0, 0, 0.6); }
.tech-btn.primary { background: linear-gradient(180deg, var(--accent-cyan), #5a82d4); color: #0f0f14; box-shadow: 0 4px 0 #3b5998, 0 6px 8px rgba(0, 0, 0, 0.4); }
.tech-btn.primary:hover { text-shadow: none; filter: brightness(1.1); }
.tech-btn.primary:active { box-shadow: 0 0 0 #3b5998, inset 0 3px 6px rgba(0, 0, 0, 0.4); }

.user-badge { display: flex; align-items: center; gap: 10px; background: rgba(115, 218, 202, 0.1); border: 1px solid var(--accent-green); padding: 8px 15px; border-radius: 8px; }
.user-avatar { width: 24px; height: 24px; background: var(--accent-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0f0f14; font-weight: bold; font-size: 12px; }
.user-name { color: var(--accent-green); font-family: monospace; font-size: 13px; }

/* Стили для форм и терминала */
.terminal-panel { background: #13141c; border: 1px solid var(--panel-border); border-radius: 10px; padding: 25px; margin: 30px 0; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8); font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; color: #9aa5ce; position: relative; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; font-family: monospace; }
.tech-input { width: 100%; background: #0f0f14; border: 1px solid var(--panel-border); border-bottom: 2px solid var(--metal-light); color: var(--text-main); padding: 12px; border-radius: 6px; font-size: 14px; font-family: monospace; outline: none; transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.tech-input:focus { border-bottom-color: var(--accent-cyan); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(122, 162, 247, 0.2); }
.auth-submit { width: 100%; margin-top: 10px; padding: 12px; background: linear-gradient(180deg, var(--accent-cyan), #5a82d4); color: #0f0f14; border: none; border-radius: 6px; font-weight: bold; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; box-shadow: 0 4px 0 #3b5998, 0 6px 10px rgba(0,0,0,0.3); transition: all 0.1s; }
.auth-submit:hover { filter: brightness(1.1); }
.auth-submit:active { transform: translateY(4px); box-shadow: 0 0 0 #3b5998, inset 0 2px 4px rgba(0,0,0,0.3); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Карточки проектов */
.project-card { display: flex; gap: 15px; padding: 18px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--panel-border); border-radius: 8px; margin-bottom: 12px; transition: all 0.2s; position: relative; overflow: hidden; }
.project-card:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--accent-cyan); transform: translateX(5px); }
.project-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-purple); }
.project-info { flex: 1; }
.project-title { color: var(--accent-cyan); font-family: monospace; font-size: 15px; font-weight: bold; margin-bottom: 5px; }
.project-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; font-family: monospace; }
.project-desc { font-size: 13px; color: var(--text-main); margin-bottom: 12px; }
.download-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(115, 218, 202, 0.1); color: var(--accent-green); border: 1px solid var(--accent-green); padding: 6px 12px; border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: bold; transition: all 0.2s; }
.download-btn:hover { background: var(--accent-green); color: #0f0f14; }

/* Модальное окно */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 15, 20, 0.85); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-chassis { width: 90%; max-width: 420px; background: linear-gradient(145deg, #2a2e3f, #1e2130); border-radius: 12px; padding: 2px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1); border: 1px solid #3b405a; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-chassis { transform: scale(1); }
.modal-panel { background: var(--panel-bg); border-radius: 10px; padding: 25px; box-shadow: var(--shadow-inner); position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--accent-cyan); }
.modal-header { text-align: center; margin-bottom: 20px; font-family: 'Courier New', monospace; color: var(--accent-cyan); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.auth-tabs { display: flex; background: #0f0f14; border-radius: 6px; padding: 3px; margin-bottom: 20px; border: 1px solid var(--panel-border); }
.tab-btn { flex: 1; background: transparent; border: none; color: var(--text-dim); padding: 8px; font-size: 12px; font-weight: bold; cursor: pointer; border-radius: 4px; transition: all 0.2s; text-transform: uppercase; }
.tab-btn.active { background: linear-gradient(180deg, #414868, #292e42); color: var(--text-main); box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.form-footer { text-align: center; margin-top: 15px; font-size: 11px; color: var(--text-dim); }

.footer-plate { background: var(--metal-dark); border-top: 1px solid var(--panel-border); margin: 30px -30px -30px -30px; padding: 25px 30px; border-radius: 0 0 14px 14px; text-align: center; font-size: 11px; color: var(--text-dim); box-shadow: inset 0 10px 20px rgba(0,0,0,0.5); }
.section-header { font-family: 'Courier New', monospace; color: var(--text-main); font-size: 14px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.section-header::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 8px var(--accent-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }