:root {
    --primary-color: #3b82f6;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --danger-color: #ef4444;
    --success-color: #22c55e;
}

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

html, body {
    height: 100%;
    background-color: var(--bg-color);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
}

/* Навигация */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 15px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-logo { width: 32px; height: 32px; }
.top-nav h2 { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); }
.icon-btn { background: none; border: none; font-size: 1.3rem; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }
.icon-btn:hover { color: var(--text-color); }

.container { max-width: 500px; margin: 0 auto; padding: 20px; }

/* Карточка аккаунта */
.account-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card-top h3 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.card-main { display: flex; align-items: baseline; justify-content: space-between; }
.account-code { 
    font-family: 'Monaco', 'Consolas', monospace; 
    font-size: 2.2rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.card-timer {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 10px;
}
.timer-urgent { color: var(--danger-color); text-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }

.delete-btn { background: none; border: none; color: #475569; cursor: pointer; transition: color 0.2s; display: flex; align-items: center; }
.delete-btn:hover { color: var(--danger-color); }

/* Кнопка + */
.fab {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fab:hover { background: #2563eb; transform: scale(1.05); transition: 0.2s; }

/* Модалки */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}
.modal-content {
    background: #1e293b;
    margin: 10vh auto;
    padding: 24px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { color: var(--text-color); }
.close { font-size: 24px; color: var(--text-muted); cursor: pointer; }

/* Формы */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); }
input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid var(--border-color); 
    border-radius: 12px; 
    font-size: 1rem;
    background: #0f172a;
    color: var(--text-color);
    transition: all 0.2s;
}
input:focus { outline: none; border-color: var(--primary-color); background: #1e293b; }

.btn-primary { 
    width: 100%; 
    padding: 14px; 
    border: none; 
    border-radius: 12px; 
    background: var(--primary-color); 
    color: white; 
    font-weight: 700; 
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* Секция блокировки */
.lock-container { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
    max-width: 400px;
    padding: 20px;
    text-align: center;
}

.app-logo { width: 90px; height: 90px; margin-bottom: 24px; border-radius: 20px; box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }

@media (max-width: 480px) {
    .account-code { font-size: 1.8rem; }
}
