:root {
    --neon-blue: #00f2ff;
    --neon-pink: #ff00ea;
    --dark-bg: #0a0a0c;
    --card-bg: #16161a;
    --text-white: #ffffff;
    --spring: #2ecc71;
    --summer: #f1c40f;
    --autumn: #e67e22;
    --winter: #3498db;
    --accent-orange: #ff6b35; 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background: var(--dark-bg); color: var(--text-white); scroll-behavior: smooth; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.section { padding: 80px 0; }
img { border-radius: 20px; object-fit: cover; }

header { padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(10, 10, 12, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #333; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; color: #fff; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.logo span { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: #fff; text-decoration: none; transition: 0.3s; }
nav a:hover { color: var(--neon-blue); }

.btn-neon { padding: 10px 20px; background: transparent; border: 2px solid var(--neon-blue); color: var(--neon-blue); border-radius: 25px; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-weight: bold; }
.btn-neon:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 20px var(--neon-blue); }

.hero-grid, .about-grid, .address-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.trainers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 40px; }
.trainer-card { background: var(--card-bg); padding: 20px; border-radius: 20px; text-align: center; cursor: pointer; border: 1px solid #222; transition: 0.3s; }
.trainer-card:hover { border-color: var(--neon-pink); transform: translateY(-5px); }
.trainer-img-wrapper { width: 100%; height: 250px; overflow: hidden; border-radius: 15px; margin-bottom: 15px; }
.trainer-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pricing-grid { display: flex; align-items: flex-end; gap: 20px; justify-content: center; margin-top: 40px; }
.price-card { background: var(--card-bg); padding: 30px; border-radius: 20px; text-align: center; transition: 0.4s; width: 320px; border: 1px solid #222; }
.price-card:hover { transform: scale(1.05); border-color: var(--neon-blue); box-shadow: 0 0 30px rgba(0, 242, 255, 0.2); }
.price-card.featured { padding: 50px 30px; border: 2px solid var(--neon-blue); }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--card-bg); padding: 40px; border-radius: 25px; border: 1px solid var(--neon-blue); width: 100%; max-width: 400px; position: relative; text-align: center; }
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tabs button { flex: 1; padding: 10px; background: #222; border: none; color: #fff; cursor: pointer; border-radius: 10px; }
.tabs button.active { background: var(--neon-blue); color: #000; }
input { width: 100%; padding: 12px; margin: 8px 0; background: #000; border: 1px solid #444; color: #fff; border-radius: 10px; }

.modal-full { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-bg); z-index: 3000; overflow-y: auto; padding: 40px 20px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.card { background: var(--card-bg); border-radius: 20px; padding: 25px; border: 1px solid #333; }

.calendar-container { background: #fff; border-radius: 20px; display: flex; min-height: 400px; overflow: hidden; color: #333; }
.cal-sidebar { background: var(--accent-orange); color: #fff; width: 100px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 2.5rem; font-weight: bold; text-transform: uppercase; }
.cal-main { flex: 1; padding: 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid #eee; border-left: 1px solid #eee; }
.cal-head { font-weight: bold; text-align: center; padding: 10px; font-size: 0.8rem; color: var(--accent-orange); }
.cal-day { border-right: 1px solid #eee; border-bottom: 1px solid #eee; min-height: 65px; padding: 5px; cursor: pointer; font-size: 0.9rem; position: relative; background: #fff; }
.cal-day:hover { background: #fff5f0; }
.cal-day.today { outline: 2px solid var(--accent-orange); outline-offset: -2px; }
.cal-day.empty { background: #fafafa; cursor: default; }
.workout-tag { font-size: 10px; background: var(--accent-orange); color: #fff; border-radius: 3px; padding: 2px; margin-top: 5px; display: block; overflow: hidden; }

.food-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-height: 300px; overflow-y: auto; margin-bottom: 15px; }
.food-item { display: flex; align-items: center; gap: 10px; background: #222; padding: 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.food-item:hover { border-color: var(--neon-pink); }
.food-item img { width: 30px; height: 30px; }
.food-item input { width: auto; margin: 0; }

#eatenToday { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.eaten-card { background: #fff; color: #000; padding: 8px 12px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

#tips-container { position: fixed; bottom: 20px; left: 20px; background: var(--neon-pink); padding: 15px; border-radius: 15px; max-width: 280px; font-weight: bold; display: none; z-index: 5000; box-shadow: 0 0 20px rgba(255,0,234,0.4); }
#scrollTop { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--neon-blue); border: none; cursor: pointer; font-size: 20px; display: none; z-index: 100; }

footer { padding: 40px 0; background: #050505; border-top: 1px solid #222; margin-top: 50px; }

#trainerModal.modal { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 4000; }
.trainer-modal-content {
    background: var(--card-bg);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 25px rgba(255, 0, 234, 0.3);
    border-radius: 25px;
    width: 90%;
    max-width: 750px;
    padding: 40px;
    position: relative;
    animation: fadeInModal 0.3s ease-in-out;
}
.close-trainer-modal {
    position: absolute;
    top: 15px;
    left: 25px; 
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: 0.3s;
}
.close-trainer-modal:hover { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.trainer-modal-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}
.trainer-modal-img-box {
    width: 280px;
    height: 280px; 
    overflow: hidden;
    border-radius: 20px; 
    border: 1px solid #333;
}
.trainer-modal-img-box img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.trainer-modal-info { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.trainer-modal-info h2 { font-size: 2rem; color: #fff; margin-bottom: 0;}
.trainer-modal-info h4 { color: var(--neon-pink); margin-top: 0;}
.trainer-bio-text { margin-top: 15px; background: #0f0f12; padding: 15px; border-radius: 12px; border-left: 3px solid var(--neon-blue); }
.trainer-bio-text h5 { color: var(--neon-blue); margin-bottom: 5px; font-size: 1rem; }
.trainer-bio-text p { font-size: 0.95rem; line-height: 1.5; opacity: 0.9; }

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- СТИЛІ ОСОБИСТОГО КАБІНЕТУ (/profile) --- */
.profile-page-body {
    background: var(--dark-bg);
    color: var(--text-white);
    padding-top: 100px; /* для фіксованого хедера */
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
    min-height: calc(100vh - 250px);
    align-items: start;
}

/* Бічна панель */
.profile-sidebar {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.user-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #222;
    padding-bottom: 25px;
}

.avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.user-avatar-section h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.user-avatar-section p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    word-break: break-all;
}

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.premium-badge {
    background: rgba(255, 0, 234, 0.15);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-tab-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #aaa;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}

.menu-tab-btn i {
    font-size: 1.1rem;
    width: 20px;
}

.menu-tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.menu-tab-btn.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

/* Контентна частина */
.profile-content {
    min-height: 500px;
}

.profile-tab-content {
    display: none;
    animation: fadeInTab 0.4s ease-in-out forwards;
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* Картки статистики */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 2.2rem;
    width: 50px;
    text-align: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
}

/* Дашборд деталі */
.overview-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.bmi-details-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmi-scale-container {
    margin-top: 25px;
}

.bmi-progress-bar {
    height: 12px;
    background: linear-gradient(to right, #3498db 0%, #2ecc71 40%, #f1c40f 70%, #e67e22 85%, #e74c3c 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 10px;
}

.bmi-indicator {
    width: 6px;
    height: 22px;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
    transition: left 0.5s ease-in-out;
}

.bmi-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
}

.chart-card {
    min-height: 300px;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
    margin-top: 15px;
}

/* Налаштування */
.settings-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.settings-forms-grid input {
    background: #09090b;
    border: 1px solid #333;
    padding: 12px 15px;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #fff;
}

.settings-forms-grid input:focus {
    border-color: var(--neon-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.calendar-nav-buttons {
    display: flex;
    gap: 10px;
}
