/* ГЛОБАЛЬНЫЕ СТИЛИ */
body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ССЫЛКИ */
a { color: #00ffd5; text-decoration: none; transition: 0.3s; }
a:hover { text-shadow: 0 0 10px #00ffd5; }

/* ЭФФЕКТ СТЕКЛА (ДЛЯ ВХОДА И РЕГИСТРАЦИИ) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.glass-panel {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 213, 0.1);
    box-shadow: 0 0 40px rgba(0, 255, 213, 0.05);
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

/* ЗАГОЛОВКИ */
h1, h2 { 
    color: #00ffd5; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 900;
}

/* ПОЛЯ ВВОДА */
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    box-sizing: border-box;
    transition: 0.3s;
    font-size: 14px;
}

input:focus { 
    border-color: #00ffd5; 
    outline: none; 
    box-shadow: 0 0 10px rgba(0,255,213,0.1); 
    background: rgba(0, 0, 0, 0.8);
}

/* КНОПКИ */
.btn {
    background: linear-gradient(45deg, #00ffd5, #00ccaa);
    color: #000;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0, 255, 213, 0.2);
}

.btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 213, 0.4); 
}

/* ОШИБКИ */
.error-msg { 
    color: #ff4444; 
    background: rgba(255, 0, 0, 0.1); 
    border: 1px solid #ff4444;
    padding: 10px; 
    border-radius: 5px; 
    margin-bottom: 15px; 
    font-size: 0.9em; 
}

/* НИЖНИЕ ССЫЛКИ */
.links { 
    margin-top: 25px; 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85em;
}

.links a { color: #888; }
.links a:hover { color: #fff; }

/* АНИМАЦИЯ ПОЯВЛЕНИЯ */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- СТИЛИ ДЛЯ ЛИЧНОГО КАБИНЕТА (DASHBOARD) --- */
.dashboard-container { 
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
}

@media (max-width: 768px) {
    .dashboard-container { grid-template-columns: 1fr; }
}

.navbar { 
    background: rgba(10, 10, 10, 0.9); 
    border-bottom: 1px solid #222; 
    padding: 20px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    backdrop-filter: blur(10px);
}

.user-tag { 
    background: #222; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 14px; 
    margin-right: 15px;
    border: 1px solid #333;
}

.logout { 
    color: #ff4444 !important; 
    font-weight: bold; 
    font-size: 13px;
    text-transform: uppercase;
}

.card { 
    background: #111; 
    border: 1px solid #222; 
    padding: 30px; 
    border-radius: 12px; 
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, #00ffd5, transparent);
    opacity: 0.5;
}

.card h3 { 
    margin-top: 0; 
    font-size: 16px; 
    color: #fff; 
    border-bottom: 1px solid #222; 
    padding-bottom: 15px; 
    margin-bottom: 20px;
}

.stat-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid #1a1a1a; 
    font-size: 14px; 
}
.stat-row:last-child { border-bottom: none; }
.val { font-family: 'Consolas', monospace; color: #fff; }
.val.active { color: #00ffd5; }
.val.expired { color: #ff4444; }

.btn-download {
    display: block;
    background: #00ffd5;
    color: #000;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
}

.input-key { 
    text-align: center; 
    letter-spacing: 2px; 
    font-family: monospace; 
    font-size: 16px; 
}

.reset-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
}
.reset-btn:hover { border-color: #ffaa00; color: #ffaa00; }
