:root {
    --purple-main: #6C5CE7;
    --purple-dark: #5849BE;
    --dark-card: #1E1E2C;
    --bg-body: #F4F6F9;
    --white: #FFFFFF;
    --text-main: #2D3436;
    --text-gray: #A0A0A0;
    --green: #00B894;
    --red: #FF7675;
    --orange: #FDCB6E;
    --blue: #74B9FF;
    
    --radius-L: 32px;
    --shadow-card: 0 8px 20px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-body);
    height: 100dvh;
    min-height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

/* --- ГОЛОВНИЙ КОНТЕЙНЕР --- */
.app-container {
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-body);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* На десктопі обмежуємо ширину контенту для зручності */
@media (min-width: 768px) {
    .app-container { 
        max-width: 480px;
        margin: 0 auto;
    }
}

/* --- СКРОЛ-ЗОНА --- */
.scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* --- ШАПКА --- */
.header {
    background: linear-gradient(180deg, var(--purple-main) 0%, var(--purple-dark) 100%);
    padding: 40px 25px 90px 25px;
    border-bottom-left-radius: var(--radius-L);
    border-bottom-right-radius: var(--radius-L);
    flex-shrink: 0;
}

.header-compact {
    padding: 40px 25px 30px 25px;
}

.user-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; color: white;
}
.avatar {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; border: 2px solid rgba(255,255,255,0.3);
}

.balance-card {
    background: var(--dark-card);
    border-radius: var(--radius-L);
    padding: 25px 30px;
    color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}
.balance-card::after {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    border-radius: 50%; pointer-events: none;
}

/* --- КНОПКИ --- */
.floating-buttons {
    display: flex; 
    justify-content: center;
    gap: 32px;
    padding: 0 25px;
    margin-top: -45px;
    margin-bottom: 25px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}
.btn-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 70px; cursor: pointer; text-decoration: none;
}
.btn-icon {
    width: 64px; height: 64px;
    background: var(--white);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}
.btn-icon img{
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.btn-label { font-size: 13px; font-weight: 600; color: var(--text-gray); }

/* --- ВІДЖЕТИ --- */
.widget-area {
    padding: 0 25px 20px 25px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-L);
    padding: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.chart-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px;
}
.chart-title { font-size: 18px; font-weight: 700; }

/* Перемикач */
.toggle-switch {
    background: #F0F2F5;
    border-radius: 20px;
    padding: 4px;
    display: flex;
}
.toggle-opt {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    color: var(--text-gray);
    transition: 0.2s;
}
.toggle-opt.active {
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Транзакції */
.tx-list { display: flex; flex-direction: column; gap: 15px; }
.tx-item { display: flex; align-items: center; justify-content: space-between; }
.tx-icon {
    width: 48px; height: 48px;
    border-radius: 16px;
    background: #F8F9FB;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-right: 15px;
}
.tx-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.tx-sub { font-size: 12px; color: var(--text-gray); }
.tx-amount { font-size: 16px; font-weight: 700; }
.plus { color: var(--green); }
.minus { color: var(--red); }

/* --- НИЖНЄ МЕНЮ --- */
.bottom-nav {
    background: var(--white);
    height: 85px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: flex; justify-content: space-around; align-items: flex-start;
    padding-top: 15px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    flex-shrink: 0;
    z-index: 100;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(85px + env(safe-area-inset-bottom));
}
.nav-btn{
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    text-decoration: none;
}
.nav-btn img{
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 0.45;
    filter: grayscale(1);
    transition: 0.2s;
}
.nav-btn.active{
    background: rgba(108, 92, 231, 0.1);
}
.nav-btn.active img{
    opacity: 1;
    filter: none;
}

/* --- МОДАЛКА --- */
.modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 200;
    opacity: 0; pointer-events: none; transition: 0.3s;
    display: flex; align-items: flex-end;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-sheet {
    background: var(--white);
    width: 100%;
    border-radius: 35px 35px 0 0;
    padding: 30px;
    transform: translate3d(0, 100%, 0);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.modal-overlay.active .modal-sheet {
    transform: translate3d(0, 0, 0);
}
.m-head { text-align: center; margin-bottom: 20px; }
.m-icon { font-size: 48px; margin-bottom: 10px; display: block; }
.m-amt { font-size: 40px; font-weight: 800; }
.m-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px dashed #eee; }
.close-btn { width: 100%; padding: 18px; background: var(--purple-main); color: white; border: none; border-radius: 20px; font-weight: 700; margin-top: 20px; cursor: pointer; font-family: 'Rubik', sans-serif; font-size: 15px; }


/* =============================================
   СТОРІНКА ДОСЯГНЕНЬ
   ============================================= */

/* --- Фільтри предметів --- */
.subject-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 25px 15px 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
}
.subject-filters::-webkit-scrollbar { display: none; }

.filter-chip {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E8E8EF;
    background: var(--white);
    color: var(--text-gray);
    transition: all 0.25s ease;
    font-family: 'Rubik', sans-serif;
    white-space: nowrap;
}
.filter-chip:hover {
    border-color: var(--purple-main);
    color: var(--purple-main);
}
.filter-chip.active {
    background: var(--purple-main);
    color: white;
    border-color: var(--purple-main);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* --- Статистичні міні-картки --- */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    text-align: center;
}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Порожній стан --- */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}
.empty-emoji {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
    animation: sadBounce 2s ease-in-out infinite;
}
@keyframes sadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.empty-text {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 600;
    line-height: 1.5;
}

/* --- Таблиця уроків --- */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F8F9FB;
    border-radius: 18px;
    transition: transform 0.15s ease;
}
.lesson-item:active {
    transform: scale(0.98);
}
.lesson-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lesson-date {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.lesson-date .day {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}
.lesson-date .month {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
}
.lesson-info .lesson-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.lesson-info .lesson-desc {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
}
.lesson-points {
    font-size: 16px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 12px;
}
.lesson-points.pos {
    color: var(--green);
    background: rgba(0, 184, 148, 0.08);
}
.lesson-points.neg {
    color: var(--red);
    background: rgba(255, 118, 117, 0.08);
}

/* --- Горизонтальні барчики по предметам --- */
.subject-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sbar-row {
    display: grid;
    grid-template-columns: 105px 1fr 48px;
    align-items: center;
    gap: 10px;
}
.sbar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.sbar-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.sbar-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sbar-track {
    height: 12px;
    background: #F0F2F5;
    border-radius: 6px;
    overflow: hidden;
}
.sbar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sbar-value {
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

/* --- Заголовок сторінки у шапці --- */
.page-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-bottom: 8px;
}
.page-title-row h1 {
    font-size: 22px;
    font-weight: 800;
}
.back-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: background 0.2s;
}
.back-link:hover {
    background: rgba(255,255,255,0.25);
}

/* --- Загальна середня виділена картка --- */
.avg-highlight {
    background: linear-gradient(135deg, var(--purple-main), #a29bfe);
    border-radius: var(--radius-L);
    padding: 22px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
}
.avg-highlight::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.avg-highlight .avg-num {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.avg-highlight .avg-label {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   СТОРІНКА ПРОФІЛЮ
   ============================================= */

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
}
.profile-avatar-ring {
    width: 88px;
    height: 88px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.2);
    border: 4px solid var(--white);
    transition: transform 0.2s ease;
}
.profile-avatar-emoji {
    font-size: 44px;
    line-height: 1;
}
.avatar-change-btn {
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 16px;
    border: 2px solid var(--purple-main);
    background: transparent;
    color: var(--purple-main);
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.avatar-change-btn:active {
    background: var(--purple-main);
    color: white;
}

.profile-name-block {
    text-align: center;
    margin-bottom: 20px;
}
.profile-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}
.profile-class {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Інфо-список */
.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F2F5;
}
.profile-info-row:last-child {
    border-bottom: none;
}
.profile-info-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: #F8F9FB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-info-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.profile-info-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 1px;
}
.profile-info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Статистика профілю */
.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: #F8F9FB;
    border-radius: 18px;
}
.profile-stat-num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.profile-stat-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Сітка аватарів у модалці */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 16px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: none;
}
.avatar-grid::-webkit-scrollbar { display: none; }

.avatar-grid-item {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #F0F2F5;
    background: var(--white);
    border-radius: 16px;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-family: inherit;
}
.avatar-grid-item:active {
    transform: scale(0.9);
    border-color: var(--purple-main);
    background: rgba(108, 92, 231, 0.08);
}

/* =============================================
   СТОРІНКА "В РОЗРОБЦІ"
   ============================================= */

.coming-soon-card {
    text-align: center;
    padding: 30px 24px;
}

.cs-emoji-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.cs-emoji {
    font-size: 72px;
    display: block;
    animation: csFloat 3s ease-in-out infinite;
}
@keyframes csFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.cs-sparkle {
    position: absolute;
    font-size: 18px;
    animation: csTwinkle 2s ease-in-out infinite;
    pointer-events: none;
}
.cs-sparkle-1 { top: -5px; right: -18px; animation-delay: 0s; }
.cs-sparkle-2 { top: 10px; left: -20px; animation-delay: 0.6s; }
.cs-sparkle-3 { bottom: 0; right: -12px; animation-delay: 1.2s; }
@keyframes csTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.cs-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}
.cs-text {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Прогрес-бар */
.cs-progress-wrap {
    width: 100%;
}
.cs-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
}
.cs-progress-pct {
    color: var(--purple-main);
    font-weight: 800;
}
.cs-progress-track {
    height: 10px;
    background: #F0F2F5;
    border-radius: 5px;
    overflow: hidden;
}
.cs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-main), #a29bfe);
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Фічі */
.cs-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cs-feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F8F9FB;
    border-radius: 16px;
}
.cs-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.cs-feature-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Посилання на інші розділи */
.cs-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cs-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F8F9FB;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.cs-link-item:active {
    transform: scale(0.98);
}
.cs-link-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.cs-link-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}
.cs-link-arrow {
    font-size: 16px;
    color: var(--purple-main);
    font-weight: 700;
}

/* =============================================
   ФОТО-АВАТАРИ
   ============================================= */

/* Загальний стиль для фото всередині .avatar (шапка) */
.avatar .avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Фото в профілі (великий аватар) */
.profile-avatar-ring .avatar-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Коли в profile-avatar-ring є фото — приховуємо емодзі-стиль */
.profile-avatar-ring:has(.avatar-photo) .profile-avatar-emoji {
    display: none;
}

/* Кнопка завантаження фото в модалці */
.avatar-upload-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #F0F2F5;
    text-align: center;
}

.avatar-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--purple-main);
    background: rgba(108, 92, 231, 0.04);
    border-radius: 18px;
    color: var(--purple-main);
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.avatar-upload-btn:active {
    background: rgba(108, 92, 231, 0.12);
    transform: scale(0.98);
}
.avatar-upload-btn .upload-icon {
    font-size: 22px;
}

/* Прев'ю перед завантаженням */
.avatar-preview-section {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #F0F2F5;
}
.avatar-preview-section.active {
    display: flex;
}
.avatar-preview-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--purple-main);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.2);
}
.avatar-preview-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}
.avatar-preview-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    border: none;
}
.btn-cancel-upload {
    background: #F0F2F5;
    color: var(--text-gray);
}
.btn-confirm-upload {
    background: var(--purple-main);
    color: white;
}
.btn-confirm-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Поточне фото в модалці (якщо є) */
.current-photo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F8F9FB;
    border-radius: 16px;
    margin-top: 14px;
}
.current-photo-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--purple-main);
}
.current-photo-info {
    flex: 1;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}
.btn-remove-photo {
    padding: 8px 14px;
    border: 2px solid var(--red);
    background: transparent;
    color: var(--red);
    border-radius: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* =============================================
   РЕДАГУВАННЯ ПРОФІЛЮ
   ============================================= */

.edit-info-btn {
    padding: 8px 16px;
    border: 2px solid var(--purple-main);
    background: transparent;
    color: var(--purple-main);
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.edit-info-btn:active {
    background: var(--purple-main);
    color: white;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

.edit-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid #E8E8EF;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    background: #F8F9FB;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.edit-input:focus {
    border-color: var(--purple-main);
    background: var(--white);
}
.edit-input::placeholder {
    color: #C0C0C0;
}

.edit-error {
    background: #FFE0E0;
    color: #C0392B;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
}