@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;900&display=swap');

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

body { 
    background-color: #06070a;
    color: #ffffff; 
    font-family: 'Montserrat', sans-serif; 
    padding-bottom: 90px; 
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    transition: background-image 0.3s ease-in-out;
}

/* Принудительный сброс кэша картинок через ?v=2 */
body.bg-main { background-image: url('../bg-main.jpg?v=2'); }
body.bg-sub { background-image: url('../bg-sub.jpg?v=2'); }

.top-header { 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
}
.welcome-block { flex: 1; padding-right: 15px; }
.greeting { font-size: 11px; color: #a1a1aa; margin-bottom: 4px; text-transform: uppercase; font-weight: 600;}
.brand { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.subtitle { font-size: 10px; color: #d4d4d8; line-height: 1.5; }

.header-controls { 
    display: flex; 
    flex-direction: row; 
    gap: 8px; 
    align-items: center; 
}
.glass-select {
    background: rgba(15, 15, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: bold; outline: none;
    backdrop-filter: blur(10px); cursor: pointer;
}
.glass-select option { background: #0b0e14; }
.tg-btn {
    background: rgba(15, 15, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px); text-decoration: none;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.glass-card {
    background: rgba(12, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.glass-card:active { transform: scale(0.98); }

.card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 20px;
}
.card-info h2 { font-size: 16px; font-weight: 900; margin-bottom: 8px; line-height: 1.2; text-transform: uppercase;}
.card-info p { font-size: 11px; color: #a1a1aa; line-height: 1.5; margin-bottom: 5px;}

.course-tags { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    margin-top: 15px; 
}
.tag-pill { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 11px; 
    color: #a1a1aa; 
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.card-action {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}

.red-circle-btn {
    width: 36px; height: 36px; background: #ef4444; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
}

.locked-card { background: rgba(8, 10, 15, 0.85); border-color: rgba(255,255,255,0.02); }
.locked-card h2 { color: #71717a; }
.locked-card p { color: #52525b; }
.lock-icon-large {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3);
}

.view-section { display: none; }
.view-section.active { display: flex; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #06070a; padding: 12px 20px;
    display: flex; justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.05); z-index: 1000;
}
.nav-btn { background: none; border: none; color: #52525b; font-size: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: bold; cursor: pointer;}
.nav-btn.active { color: #fff; }
.nav-btn .icon { font-size: 18px; }