/* ================= ОСНОВНОЙ КОНТЕЙНЕР ================= */
.profile-wrapper {
    position: relative;
    padding: 40px 50px;
    max-width: 1200px;
    box-sizing: border-box;
}

/* ================= ЗАГОЛОВКИ ================= */
.page-title-area {
    margin-bottom: 24px;
}
.page-title-area .page-label {
    font-size: 9px;
    font-weight: 700;
    color: #0F8F82;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.page-title-area .page-title {
    font-size: 34px;
    font-weight: 700;
    color: #172522;
    margin: 0 0 4px 0;
    line-height: 1.2;
}
.page-title-area .page-subtitle {
    font-size: 11px;
    color: #74817E;
    margin: 0;
}

/* ================= КНОПКА "УСТАНОВИТЬ ПРИЛОЖЕНИЕ" ================= */
.btn-install-app {
    position: absolute;
    top: 40px;
    right: 50px;
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #14B8A6;
    border-radius: 10px;
    color: #14B8A6;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.btn-install-app:hover {
    background: #14B8A6;
    color: #FFFFFF;
}

/* ================= КАРТОЧКА ПОЛЬЗОВАТЕЛЯ ================= */
.student-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E3EBE8;
    box-shadow: 0px 8px 24px rgba(20, 51, 46, 0.04);
    border-radius: 17px;
    padding: 22px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.student-avatar {
    width: 80px;
    height: 80px;
    background: #C9F1E8;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #0F8F82;
    margin-right: 20px;
    flex-shrink: 0;
}

.student-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.student-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #172522;
    margin: 0 0 4px 0;
}
.student-info p {
    font-size: 11px;
    color: #74817E;
    margin: 0 0 10px 0;
}
.student-chip {
    background: #EFF5F3;
    padding: 6px 12px;
    border-radius: 13px;
    font-size: 10px;
    font-weight: 500;
    color: #74817E;
}

/* ================= КНОПКА "РЕДАКТИРОВАТЬ" ================= */
.btn-edit-profile {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: #FFFFFF;
    border: 1px solid #E3EBE8;
    border-radius: 10px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #172522;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.btn-edit-profile:hover {
    border-color: #14B8A6;
    color: #14B8A6;
}

/* ================= БЛОК СТАТИСТИКИ ================= */
.stats-row {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E3EBE8;
    border-radius: 17px;
    padding: 32px 40px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bg-green { background: #ECF9F1; }
.bg-yellow { background: #FFF9E2; }
.bg-blue { background: #EDF5FF; }

.stat-text {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #172522;
    line-height: 1.2;
}
.stat-label {
    font-size: 9px;
    color: #74817E;
}
.stat-divider {
    width: 1px;
    height: 60px;
    background: #E3EBE8;
    margin: 0 20px;
}

/* ================= НИЖНЯЯ СЕТКА ================= */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E3EBE8;
    border-radius: 17px;
    padding: 24px;
    box-sizing: border-box;
}

/* График */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.activity-title .page-label {
    font-size: 9px;
    font-weight: 700;
    color: #0F8F82;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.activity-title h4 {
    font-size: 16px;
    font-weight: 700;
    color: #172522;
    margin: 0;
}
.activity-percent {
    font-size: 11px;
    font-weight: 700;
    color: #24A66A;
}

.chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding: 0 10px;
}
.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 40px;
}
.bar {
    width: 100%;
    background: #14B8A6;
    border-radius: 7px 7px 0 0;
    margin-bottom: 12px;
    transition: height 0.3s ease;
}
.bar-col span {
    font-size: 8px;
    color: #74817E;
}

/* Карьера */
.career-card {
    display: flex;
    align-items: center;
    justify-content: center;
}
.career-content {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}
.circle-progress {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #E3ECEA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.circle-inner {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #172522;
}
.career-text {
    flex: 1;
}
.career-text .page-label {
    font-size: 9px;
    font-weight: 700;
    color: #0F8F82;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.career-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #172522;
    margin: 0 0 4px 0;
}
.career-text p {
    font-size: 9px;
    color: #74817E;
    margin: 0 0 16px 0;
}
.progress-bar-bg {
    width: 100%;
    height: 7px;
    background: #E4EDEB;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #14B8A6;
    border-radius: 4px;
}

/* ================= КНОПКА "ВЫЙТИ" ================= */
.btn-logout {
    background: #FFFFFF;
    border: 1px solid #F1D7D4;
    border-radius: 10px;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #C45C55;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}
.btn-logout:hover {
    background: #FFF0EF;
}

/* ================= МОДАЛЬНОЕ ОКНО ДЛЯ ГОСТЯ ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(23, 37, 34, 0.4); /* Темный полупрозрачный фон */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: modalScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.modal-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #172522;
    margin-bottom: 12px;
}

.modal-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #74817E;
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Кнопка регистрации */
.modal-actions .btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: #14B8A6;
    color: #FFFFFF;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.modal-actions .btn-primary:hover {
    background: #0F8F82;
}

/* Кнопка "Остаться" */
.modal-actions .btn-outline {
    display: block;
    width: 100%;
    padding: 14px;
    background: #FFFFFF;
    color: #74817E;
    border: 1px solid #E3EBE8;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-actions .btn-outline:hover {
    border-color: #14B8A6;
    color: #14B8A6;
}
