* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

body {
    background: linear-gradient(96.44deg, #e5ebee, #e2f0ff 51.56%, #d7d4ff);
    font-family: 'Inter', 'Montserrat', sans-serif;
    color: #1a2a3f;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}
.logo-area img {
  
}

/* Контейнеры */
.container, .dashboard-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Карточки — стеклянный эффект */
.card, .stat-card, .price-box, .macro-card, .chart-container, .lock-box, .auth-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card:hover, .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

/* Кнопки */
.btn-primary, .btn-primary:link, .btn-primary:visited {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #1a6d8f, #0f5c7a);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f5c7a, #0a4a63);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-outline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border: 1.5px solid #1a6d8f;
    padding: 8px 20px;
    border-radius: 40px;
    background: transparent;
    color: #1a6d8f;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #1a6d8f;
    color: white;
    transform: translateY(-1px);
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 1440px;
    margin: 0 auto;
    border-radius: 0 0 24px 24px;
}

.logo-area {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.site-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a6d8f, #0f5c7a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.site-title p {
    font-size: 0.7rem;
    color: #5a6e7c;
    margin: 0;
}

.nav {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav a:hover, .nav a.active {
    color: #1a6d8f;
}

/* Главная страница */
.main-content {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 32px;
    padding: 40px;
    margin: 40px 0;
}

h1 {
    font-size: 2.3rem;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(226deg, #ab61cd, #fbbb3e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    text-align: center;
}

h2 {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin: 40px 0 20px;
    color: #1a6d8f;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 32px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
}

.feature-card h3 {
    color: #1a6d8f;
    margin-bottom: 12px;
}

/* Личный кабинет */
.dashboard-header {
    text-align: center;
    margin-bottom: 32px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.stat-card {
    text-align: center;
    min-width: 150px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a6d8f;
}

.stat-label {
    color: #5a6e7c;
    font-size: 0.85rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-card {
    display: block;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #1a2a3f;
    font-weight: 500;
    transition: all 0.2s;
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    color: #1a6d8f;
}

.logout {
    color: #d32f2f;
}

.logout:hover {
    background: #fdecea;
    color: #d32f2f;
}

/* Формы авторизации */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    text-align: center;
}

.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
    justify-content: center;
}

.tab {
    cursor: pointer;
    padding: 8px 24px;
    background: transparent;
    border: none;
    color: #5a6e7c;
    font-size: 1rem;
    font-weight: 500;
}

.tab.active {
    color: #1a6d8f;
    border-bottom: 2px solid #1a6d8f;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a6d8f;
    background: white;
}

.error {
    background: #fdecea;
    color: #d32f2f;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Футер */
.footer {
    text-align: center;
    font-size: 0.75rem;
    color: #5a6e7c;
    padding: 40px 0;
    margin-top: 48px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container, .dashboard-container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        justify-content: center;
    }
    
    .features-grid, .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .main-content {
        padding: 24px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content, .dashboard-container {
    animation: fadeIn 0.4s ease-out;
}