/* ===== БАЗА ===== */

:root {
    --bg: #020617;
    --bg-soft: #020617;
    --surface-primary: #020617;
    --surface-secondary: #02081b;
    --border-light: rgba(148, 163, 184, 0.35);

    --primary: #6366f1;
    --primary-alt: #4f46e5;
    --accent: #22c55e;
    --accent-alt: #22d3ee;
    --danger: #ef4444;
    --warning: #f97316;

    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.85);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.8);

    --transition-fast: 0.18s ease;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Светлая тема — более «воздушная» */
body.light-theme {
    background: radial-gradient(circle at top, #e0edff 0, #f9fafb 60%, #e5e7eb 100%);
    color: #0f172a;
}

body.light-theme .app-header {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 14px 30px rgba(148, 163, 184, 0.45);
}

body.light-theme .main-nav {
    background: rgba(15, 23, 42, 0.03);
}

body.light-theme .content-section {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.5);
}

body.light-theme .settings-card,
body.light-theme .strength-section,
body.light-theme .check-result {
    background: #f9fafb;
}

body.light-theme .password-field,
body.light-theme .feature-input {
    background: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.45);
    color: #0f172a;
}

body.light-theme .password-field::placeholder,
body.light-theme .feature-input::placeholder {
    color: #9ca3af;
}

body.light-theme .checkbox-card,
body.light-theme .option-toggle {
    background: #eef2ff;
}

body.light-theme .length-preset {
    background: #e0e7ff;
    color: #0f172a;
}

body.light-theme .length-preset.active {
    background: linear-gradient(135deg, #6366f1, #a5b4fc);
    color: #f9fafb;
}

/* светлая тема: трек и бегунок слайдера более мягкие */
body.light-theme .slider {
    background: #e5e7eb;
}

body.light-theme .slider::-webkit-slider-thumb {
    background: #9ca3af;
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.5);
}

body.light-theme .slider::-moz-range-thumb {
    background: #9ca3af;
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.5);
}

/* светлая тема: щит внутри */
body.light-theme .shield-inner {
    background: radial-gradient(circle at top, #eef2ff, #dbeafe);
    border-color: rgba(148, 163, 184, 0.6);
}

/* светлая тема: nav-активные и тема-кнопка */

body.light-theme .nav-btn.active {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

body.dark-theme .nav-btn.active {
    background: linear-gradient(135deg, #6366f1, #22d3ee);
}

body.light-theme .theme-toggle {
    background: radial-gradient(circle at top, #e5e7eb, #cbd5f5);
    color: #0f172a;
}

body.dark-theme .theme-toggle {
    background: radial-gradient(circle at top, #1f2937, #020617);
    color: #e5e7eb;
}

/* ===== ОБЩЕЕ ===== */

button {
    outline: none;
    font-family: inherit;
}

button:focus,
button:active {
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== ШАПКА ===== */

.app-header {
    background: radial-gradient(circle at top left, #1d4ed8, #020617 55%);
    border-radius: var(--radius-xl);
    padding: 0.18rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 0.95rem 1.7rem;
}

/* Логотип */

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: conic-gradient(from 210deg, #22c55e, #22d3ee, #6366f1, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecfdf5;
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.6);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: radial-gradient(circle at top, #022c22, #020617);
}

.logo-icon i {
    position: relative;
    font-size: 1.25rem;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    margin: 0;
    background: linear-gradient(135deg, #e5e7eb, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Навигация */

.main-nav {
    display: flex;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.nav-btn {
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    background: transparent;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-btn i {
    font-size: 0.95rem;
}

.nav-btn span {
    font-size: 0.85rem;
}

.nav-btn:hover {
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
}

.nav-btn.active {
    color: #f9fafb;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.75);
}

/* Кнопка темы */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.75);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-section {
    display: none;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.99));
    border-radius: var(--radius-xl);
    padding: 1.7rem 1.7rem 1.8rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* иконки рядом с заголовками */

.icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: conic-gradient(from 200deg, #6366f1, #22d3ee, #22c55e, #6366f1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
}

.icon-badge.small {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
}

/* ===== ГЕНЕРАТОР ===== */

.generator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* поле пароля + копирование */

.password-display-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.password-display {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.password-field {
    flex: 1;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, #020617, #020617 60%, #020617);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.password-field::placeholder {
    color: var(--text-muted);
}

.password-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Кнопки */

.btn {
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    padding: 0.7rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-fast);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
}

.btn i {
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1, #22c55e);
    color: #eef2ff;
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 14px 25px rgba(79, 70, 229, 0.7);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.7);
}

/* кнопка копирования теперь нормальной формы */
.copy-btn-icon {
    background: linear-gradient(135deg, #1e293b, #020617);
    border-color: rgba(148, 163, 184, 0.7);
    color: #e5e7eb;
}

.copy-btn-icon.copied {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-color: rgba(34, 197, 94, 0.9);
}

/* видно и в светлой теме */
body.light-theme .copy-btn-icon {
    background: #e5e7eb;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.8);
}

/* подсветка кнопок */

.btn-glow {
    box-shadow: 0 0 0 rgba(79, 70, 229, 0);
}

/* сложность */

.strength-section {
    background: radial-gradient(circle at top left, #020617, #020617 70%, #020617);
    border-radius: var(--radius-lg);
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.strength-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}

.strength-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.strength-value {
    font-size: 0.8rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.strength-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827, #020617);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f97316, #22c55e, #22d3ee);
    transition: width var(--transition), background var(--transition);
}

.strength-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Настройки */

.settings-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1.2fr;
    gap: 1.2rem;
}

.settings-card {
    background: radial-gradient(circle at top, #020617, #020617 60%, #020617);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1.1rem;
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

/* Длина */

.length-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.length-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 0.5rem;
}

.length-preset {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.92);
    padding: 0.45rem 0.55rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    transition: var(--transition-fast);
    min-height: 44px;
    color: var(--text-primary);
}

.length-preset .preset-length {
    font-weight: 600;
    font-size: 0.95rem;
}

.length-preset .preset-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.length-preset.active {
    border-color: rgba(129, 140, 248, 1);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), rgba(15, 23, 42, 0.96));
}

/* Слайдер */

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slider-value {
    font-weight: 600;
    color: var(--text-primary);
}

.slider {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827, #1e293b);
    outline: none;
}

/* Chrome */
.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: conic-gradient(from 200deg, #6366f1, #22d3ee, #22c55e, #6366f1);
    border: 2px solid #0b1120;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.5);
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: conic-gradient(from 200deg, #6366f1, #22d3ee, #22c55e, #6366f1);
    border: 2px solid #0b1120;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.5);
}

/* Типы символов */

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.checkbox-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.4rem 0.55rem;
    cursor: pointer;
    display: flex;
    align-items: stretch;
}

.checkbox-card input {
    display: none;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.checkbox-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: transparent;
    background: radial-gradient(circle at top, #020617, #020617);
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-title {
    font-size: 0.85rem;
}

.checkbox-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Включённый чекбокс */

.checkbox-card input:checked + .checkbox-content .checkbox-icon {
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.96));
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.95);
}

/* Доп. настройки */

.advanced-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.92);
    padding: 0.5rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    cursor: pointer;
}

.option-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.toggle-slider {
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.95);
    position: relative;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.5);
    transition: var(--transition-fast);
}

.option-toggle input:checked + .toggle-slider {
    background: #22c55e;
}

.option-toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
    background: #f9fafb;
}

.toggle-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== ПРОВЕРКА ПАРОЛЯ ===== */

.checker-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 1.5rem;
    align-items: center;
}

.checker-visual {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

/* красивый щит */

.security-shield {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: conic-gradient(from 210deg, rgba(59, 130, 246, 0.55), rgba(34, 211, 238, 0.55), rgba(34, 197, 94, 0.6), rgba(59, 130, 246, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.8);
    margin: 0 auto;
    position: relative;
}

.shield-inner {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: inherit;
    background: radial-gradient(circle at top, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 184, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-inner i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #a5b4fc, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shield-status {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

/* поле проверки */

.input-with-button {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-input {
    flex: 1;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, #020617, #020617);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.feature-input::placeholder {
    color: var(--text-muted);
}

.btn-check {
    white-space: nowrap;
}

/* результат проверки */

.check-result {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.99));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.15rem 1.1rem;
    min-height: 160px;
}

.result-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.result-lock {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    margin: 0 auto 0.6rem;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.65);
}

.result-lock i {
    font-size: 1.7rem;
    color: #eef2ff;
}

.result-placeholder h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.result-placeholder p {
    margin: 0;
    font-size: 0.85rem;
}

/* ===== ФУТЕР ===== */

.app-footer {
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem;
    align-items: center;
}

.footer-signature a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(34, 197, 94, 0.6);
}

.footer-signature a:hover {
    color: #bbf7d0;
}

/* ===== МОДАЛКА КОМАНДЫ ===== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: radial-gradient(circle at top, #020617, #020617 70%, #020617);
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(148, 163, 184, 0.45);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(15, 23, 42, 0.9);
}

.modal-body {
    padding: 1.2rem 1.4rem 1.3rem;
    overflow-y: auto;
}

/* Команда */

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.team-member {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0.4rem;
    border-radius: var(--radius-md);
}

.team-member:hover {
    background: rgba(15, 23, 42, 0.95);
}

.member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #4f46e5, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    flex-shrink: 0;
}

.member-info h3 {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
}

.member-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== УВЕДОМЛЕНИЯ ===== */

#notifications {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 60;
}

.notification {
    min-width: 220px;
    max-width: 320px;
    border-radius: var(--radius-lg);
    padding: 0.7rem 1rem;
    color: #f9fafb;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(100%);
    transition: 0.25s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.notification.warning {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* ===== АДАПТИВ ===== */

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checker-container {
        grid-template-columns: 1fr;
    }

    .checker-visual {
        order: -1;
    }
}

@media (max-width: 720px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .main-nav {
        justify-content: center;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1.35rem 1.1rem 1.35rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.9rem;
    }

    .header-content {
        padding: 0.9rem 1.1rem;
    }

    .nav-btn span {
        display: none;
    }

    .nav-btn {
        padding: 0.5rem 0.7rem;
    }

    .password-display {
        flex-direction: column;
    }

    .input-with-button {
        flex-direction: column;
    }

    .btn-check {
        width: 100%;
        justify-content: center;
    }

    .security-shield {
        width: 130px;
        height: 130px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Премиальная анимация градиентов и hover ===== */

/* вместо бегущей точки — плавный hue-rotate */
.animated-gradient {
    animation: hue-shift 14s linear infinite;
}

@keyframes hue-shift {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}

/* общие плавные переходы */
.btn,
.nav-btn,
.settings-card,
.icon-badge,
.length-preset,
.checkbox-card,
.option-toggle,
.copy-btn-icon,
.theme-toggle,
.security-shield,
.result-lock {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        filter 0.25s ease;
}

/* кнопки */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.85);
}

.btn-glow:hover {
    box-shadow:
        0 0 12px rgba(99, 102, 241, 0.55),
        0 0 26px rgba(34, 211, 238, 0.3);
}

/* копировать */
.copy-btn-icon:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 14px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(15, 23, 42, 0.5);
}

.copy-btn-icon:hover i {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

/* навигация */
.nav-btn:hover {
    background: rgba(15, 23, 42, 0.96);
}

/* карточки настроек */
.settings-card:hover {
    transform: translateY(-3px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.9);
}

/* пресеты длины */
.length-preset:hover {
    border-color: rgba(129, 140, 248, 0.9);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.3), rgba(15, 23, 42, 0.98));
}

/* чекбоксы и тумблеры */
.checkbox-card:hover,
.option-toggle:hover {
    border-color: rgba(129, 140, 248, 0.75);
    background: rgba(15, 23, 42, 0.98);
}

/* иконки-кружки */
.icon-badge:hover {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.85);
}

/* переключатель темы */
.theme-toggle:hover {
    transform: translateY(-1px) rotate(-4deg);
    box-shadow:
        0 0 15px rgba(248, 250, 252, 0.35),
        0 0 30px rgba(37, 99, 235, 0.6);
}

/* щит проверки */
.security-shield:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 45px rgba(37, 99, 235, 0.95),
        0 0 30px rgba(34, 211, 238, 0.35);
}

/* щит в placeholder */
.result-lock:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 35px rgba(79, 70, 229, 0.9);
}