:root {
    --primary: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --bg: #f5f9f5;
    --card: #ffffff;
    --text: #1b2e1b;
    --text-muted: #5a6b5a;
}

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

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

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.eco-container {
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    background: var(--card);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 32, 0, 0.08);
    padding: 2rem;
}

.auth-container .eco-container {
    max-width: 480px;
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .eco-container {
        padding: 1.5rem;
        width: 95%;
    }
    .auth-container .eco-container {
        width: 95%;
    }
}

.eco-header {
    text-align: center;
    margin-bottom: 2rem;
}

.eco-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.eco-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e8e0;
    border-radius: 16px;
    font-size: 1rem;
    background: var(--bg);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.eco-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.eco-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 80, 0, 0.1);
}

.help-block {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.has-error input {
    border-color: #d32f2f;
}

.eco-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.eco-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.eco-links a:hover {
    text-decoration: underline;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e8e0;
}

.progress-bar {
    background: #e0e8e0;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 5px;
    width: 100%;
}

.progress-fill {
    background: var(--primary);
    color: white;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.8;
}

nav {
    background: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

/* Layout с сайдбаром */
.app-layout {
    display: flex;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg);
}

/* Сайдбар карточки */
.sidebar {
    width: 320px;
    background: transparent;
    padding: 1.5rem 1rem;
}

.sidebar-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    transition: 0.2s;
}

.sidebar-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 0.8rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f4f0;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.social-links a {
    display: block;
    padding: 0.4rem 0;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    text-decoration: underline;
}

.curator-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.today-users li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.placeholder {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.congrats-placeholder {
    background: #f9f2e0;
    border-radius: 16px;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.85rem;
    color: #b96f0f;
}

/* Видео */
.video-container {
    margin: 1rem 0;
    border-radius: 24px;
    overflow: hidden;
    background: black;
}

.lesson-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Карточки статистики (для панели) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}