/* Plans Page Styles */

/* Ensure proper mobile layout */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Plans Main Content */
.plans-main {
    padding: 20px 16px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 140px);
    max-width: 100%;
    overflow-x: hidden;
}

/* Quick Stats Section */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

.stat-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Honest "no data yet" variant for the completion-rate card so the white
   gradient background reads as informational rather than triumphant. */
.stat-card.stat-card--empty {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25);
}

/* === Trainee achievements card (real DB-derived) ============== */
.trainee-achievements-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #fce7f3;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.08);
    padding: 18px;
    margin-bottom: 24px;
}

.trainee-achievements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.trainee-achievements-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
}

.trainee-achievements-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.trainee-achievements-title i {
    color: #f59e0b;
    font-size: 18px;
}

.trainee-achievements-count {
    background: #fef3c7;
    color: #78350f;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.trainee-achievements-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 480px) {
    .trainee-achievements-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.trainee-achievement-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    min-width: 0;
}

.trainee-achievement-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 14px;
}

.trainee-achievement-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trainee-achievement-badge-title {
    font-size: 12px;
    font-weight: 700;
    color: #78350f;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trainee-achievement-badge-sub {
    font-size: 10px;
    color: #92400e;
    line-height: 1.3;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trainee-achievements-empty {
    margin: 0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.trainee-achievement-next {
    margin-top: 14px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.trainee-achievement-next-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.trainee-achievement-next-label {
    font-size: 13px;
    color: #475569;
}

.trainee-achievement-next-label i {
    color: #ec4899;
    margin-inline-end: 4px;
}

.trainee-achievement-next-label strong {
    color: #1f2937;
    margin-inline-start: 4px;
}

.trainee-achievement-next-progress {
    font-size: 12px;
    font-weight: 700;
    color: #ec4899;
    background: #fdf2f8;
    padding: 3px 10px;
    border-radius: 999px;
}

.trainee-achievement-next-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.trainee-achievement-next-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #f59e0b);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Exercise sheet menu + note sheet polish */
.exercise-sheet__menu-wrap {
    padding: 0 16px 10px;
}

.exercise-sheet__menu {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
    padding: 6px;
    display: grid;
    gap: 4px;
}

.exercise-sheet__menu-btn {
    border: 0;
    width: 100%;
    text-align: start;
    border-radius: 10px;
    padding: 9px 10px;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.exercise-sheet__menu-btn:hover {
    background: #fff1f7;
    color: #be185d;
}

.note-sheet-overlay {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.exercise-note-sheet {
    width: min(92vw, 520px);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.4);
    padding: 14px;
}

.exercise-note-sheet__title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.exercise-note-sheet__sub {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.exercise-note-sheet__textarea {
    margin-top: 10px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    min-height: 130px;
    resize: vertical;
    padding: 10px 12px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.exercise-note-sheet__textarea:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.13);
}

.exercise-note-sheet__actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.exercise-note-sheet__btn {
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.exercise-note-sheet__btn--ghost {
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #475569;
}

.exercise-note-sheet__btn--primary {
    border: 0;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: #fff;
}

.trainee-achievements-microstats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #fce7f3;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.trainee-achievements-microstats i {
    color: #ec4899;
    margin-inline-end: 4px;
}

.trainee-achievements-microstats-divider {
    color: #cbd5e1;
}

/* Coach Plan Section */
.coach-plan-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.trainee-plans-shell {
    border: 1px solid #eef2f7;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.trainee-plans-shell .coach-header {
    background: linear-gradient(135deg, #fff 0%, #fdf2f8 100%);
    padding: 24px;
}

/* Override search.css .coach-info (column + flex:1) so header stays row-aligned; text follows dir (LTR/RTL). */
.trainee-plans-shell .coach-info {
    flex-direction: row;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

.trainee-plans-shell .coach-details {
    text-align: start;
    flex: 1;
    min-width: 0;
}

.trainee-plans-shell .coach-status.coach-status--pending {
    color: #b45309;
}

.trainee-plans-shell .coach-status.coach-status--pending .status-dot {
    background-color: #f59e0b;
    animation: none;
}

.trainee-plans-shell .plans-empty-hint {
    display: block;
    margin-bottom: 10px;
}

.trainee-plans-shell .plans-empty-cta {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #e91e63;
    text-decoration: none;
}

.trainee-plans-shell .plans-empty-cta:hover {
    text-decoration: underline;
}

.plan-status-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-status-badge.paid {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.plan-status-badge.pending {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.plan-status-badge.cancel,
.plan-status-badge.failed,
.plan-status-badge.unpaid {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.plans-subtitle {
    color: #6b7280;
    margin: 0 0 14px 0;
}

.plans-muted {
    color: #6b7280;
    margin-top: 0;
}

.plans-warning {
    color: #dc2626;
    margin-top: 0;
}

.tiers-grid {
    display: grid;
    gap: 12px;
}

.tier-card {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tier-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tier-price {
    color: #e11d48;
    font-weight: 700;
    font-size: 14px;
}

.empty-state-card {
    text-align: center;
}

.coach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.coach-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.coach-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.coach-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px 0;
}

.coach-specialization {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 6px;
}

.coach-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.coach-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #f8f9fa;
    color: #e91e63;
}

.action-btn.collapsed i {
    transform: rotate(180deg);
}

/* Plan Tabs */
.plan-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.plan-tab {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-tab i {
    font-size: 16px;
}

.plan-tab:hover {
    background-color: #e9ecef;
}

.plan-tab.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
    background-color: #fff;
}

.plan-tab.active i {
    color: #e91e63;
}

/* Plan Content */
.plan-content {
    padding: 20px;
}

.plan-panel {
    display: none;
}

.plan-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Day Section */
.day-section {
    margin-bottom: 30px;
}

.day-section:last-child {
    margin-bottom: 0;
}

.day-header {
    margin-bottom: 20px;
}

.day-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
}

.daily-calories {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Meals Grid */
.meals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.meal-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.meal-card--clickable {
    cursor: pointer;
    border: none;
    padding: 0;
    text-align: inherit;
    font: inherit;
    color: inherit;
    width: 100%;
    display: block;
}

.meal-card--clickable:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

.meal-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.meal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meal-card:hover .meal-image img {
    transform: scale(1.05);
}

.meal-info {
    padding: 16px;
}

.meal-type {
    font-size: 12px;
    font-weight: 600;
    color: #e91e63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.meal-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
}

.meal-info p {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 12px 0;
}

.meal-calories {
    font-size: 14px;
    font-weight: 600;
    color: #e91e63;
    text-align: right;
}

/* Meal Navigation */
.meal-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.nav-btn {
    background: none;
    border: 1px solid #e9ecef;
    color: #6c757d;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
    background-color: #fff5f8;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    max-width: 200px;
}

.progress-fill {
    height: 100%;
    background-color: #e91e63;
    width: 40%;
    transition: width 0.3s ease;
}

/* Workout Section */
.workout-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
}

.workout-header-section {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white !important;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.workout-header-section h4 {
    color: white !important;
    margin-bottom: 16px;
    font-size: 18px;
}

/* Ensure all workout header text is white */
.workout-header-section * {
    color: white !important;
}

.workout-header-section h4,
.workout-header-section span {
    color: white !important;
}

.workout-stats {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.workout-header-section .workout-stats .stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.workout-header-section .workout-stats .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: white !important;
    margin-bottom: 4px;
}

.workout-header-section .workout-stats .stat-label {
    font-size: 10px;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Level pills on gradient header */
.workout-header-section .workout-stats .level-stat .stat-value,
.workout-header-section .workout-stats .level-stat .stat-label {
    color: #e91e63 !important;
}

.workout-focus {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.workout-focus h5 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
}

.workout-focus p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exercise-group {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.exercise-group h6 {
    font-size: 14px;
    font-weight: 600;
    color: #e91e63;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exercise-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 16px;
    position: relative;
}

.exercise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.exercise-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    cursor: pointer;
}

.exercise-details:hover {
    background-color: rgba(233, 30, 99, 0.05);
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
}

.exercise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.exercise-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.exercise-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exercise-thumbnail video.exercise-thumbnail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exercise-item:hover .play-overlay {
    opacity: 1;
}

.exercise-item:hover .exercise-thumbnail img,
.exercise-item:hover .exercise-thumbnail video.exercise-thumbnail-video {
    transform: scale(1.05);
}

.exercise-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.exercise-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exercise-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.exercise-muscle {
    font-size: 12px;
    color: #e91e63;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exercise-sets {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.exercise-arrow {
    color: #6c757d;
    font-size: 28px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e91e63;
    margin-left: 8px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
}

.exercise-arrow:hover {
    color: #e91e63;
    transform: scale(1.05);
    background: linear-gradient(135deg, #fff5f8, #ffe8f0);
    border-color: #c2185b;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.exercise-arrow i {
    transition: all 0.3s ease;
}

/* Unchecked state - empty circle */
.exercise-arrow i.fa-circle {
    color: #e91e63;
    font-size: 24px;
    opacity: 0.3;
}

/* Checked state - filled circle with checkmark */
.exercise-arrow.checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.exercise-arrow.checked i {
    color: #4CAF50 !important;
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.exercise-arrow.checked i.fa-check-circle {
    color: #4CAF50 !important;
}

.exercise-arrow.checked:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: scale(1.1);
}

/* Legacy workout schedule styles (for weekly view if needed) */
.workout-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workout-day {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.workout-day:hover {
    background-color: #e9ecef;
}

.day-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    width: 80px;
    flex-shrink: 0;
}

.workout-type {
    font-size: 14px;
    color: #6c757d;
    flex: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile-specific styles for iPhone */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .plans-main {
        padding: 16px 12px;
        box-sizing: border-box;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .coach-header {
        padding: 16px;
    }
    
    .coach-avatar {
        width: 50px;
        height: 50px;
    }
    
    .coach-details h3 {
        font-size: 16px;
    }
    
    .meals-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .exercise-item {
        padding: 8px 0;
        gap: 8px;
    }
    
    .exercise-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .exercise-name {
        font-size: 13px;
    }
    
    .exercise-sets {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .meal-image {
        height: 120px;
    }
    
    .plan-content {
        padding: 16px;
    }
    
    .workout-day {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .day-name {
        width: auto;
    }
    
    .workout-duration {
        width: auto;
        text-align: left;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .plans-main {
        background-color: #1a1a1a;
    }
    
    .coaches-section,
    .coach-plan-section {
        background-color: #2a2a2a;
    }
    
    .coaches-section h2,
    .coach-details h3,
    .day-header h4,
    .meal-info h5,
    .day-name {
        color: #fff;
    }
    
    .meal-card {
        background-color: #333;
    }
    
    .workout-day {
        background-color: #333;
    }
    
    .workout-day:hover {
        background-color: #444;
    }
}

/* Workout Progress Counter */
.workout-progress {
    margin-bottom: 20px;
    text-align: center;
}

.progress-counter {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 20px;
    display: inline-block;
    backdrop-filter: blur(10px);
    color: white;
}

.progress-counter #completed-count {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

.progress-counter #total-exercises {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.progress-counter #textwhite {
    font-size: 24px;
    font-weight: 700;
    color: white;
}
.progress-counter {
    color: white;
}

.progress-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Workout Timer Row Styles */
.workout-timer-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.timer-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.timer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timer-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    margin: 0;
}

.timer-display {
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    font-family: 'Courier New', monospace;
    margin: 0;
}

/* Ensure all timer text is white */
.workout-timer-row * {
    color: white !important;
}

.workout-timer-row h6,
.workout-timer-row .timer-display {
    color: white !important;
}

.timer-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.timer-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.timer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.timer-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .workout-timer-row {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .timer-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .timer-content h6 {
        font-size: 14px;
    }
    
    .timer-display {
        font-size: 24px;
    }
    
    .timer-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* Meal Modal Styles */
.meal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.meal-modal.show {
    opacity: 1;
    visibility: visible;
}

.meal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9), rgba(194, 24, 91, 0.8));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.meal-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
}

.meal-modal.show .meal-modal-content {
    transform: scale(1) translateY(0);
}

.meal-modal-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.meal-modal-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.meal-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.meal-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f0f0f;
    display: block;
}

.meal-modal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.04) 0%,
        rgba(15, 23, 42, 0.1) 100%
    );
    pointer-events: none;
}

.meal-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.meal-modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.meal-modal-media-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #e91e63;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.meal-modal-media-toggle:hover {
    background: #fff;
    transform: translateY(-1px);
}

.meal-modal-media-fullscreen {
    position: absolute;
    top: 57px;
    left: 15px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.meal-modal-media-fullscreen:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

.meal-modal-image img.fit-contain {
    object-fit: contain;
    background: #0f172a;
}

.media-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(2, 6, 23, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.media-fullscreen-image {
    max-width: min(100vw - 28px, 1600px);
    max-height: calc(100dvh - 84px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background: #0b1220;
}

.media-fullscreen-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    border-radius: 999px;
    height: 38px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #db2777;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.meal-modal-body {
    padding: 25px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.meal-modal-info {
    text-align: center;
    margin-bottom: 25px;
}

.meal-modal-type {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.meal-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meal-modal-description {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.meal-modal-calories {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.meal-modal-estimate-note {
    font-size: 12px;
    color: #adb5bd;
    line-height: 1.4;
    margin: 12px 0 0 0;
    text-align: center;
}

.meal-modal-ingredients-fallback {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.meal-modal-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 25px 0 15px 0;
    position: relative;
}

.meal-modal-details h4:first-child {
    margin-top: 0;
}

.meal-modal-details h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border-radius: 2px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.nutrition-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
    border-color: #e91e63;
}

.nutrition-label {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.nutrition-value {
    font-size: 16px;
    font-weight: 700;
    color: #e91e63;
}

.ingredients-list {
    margin-bottom: 25px;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.ingredient-item:last-child {
    border-bottom: none;
}

.ingredient-item i {
    color: #28a745;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.ingredient-item span {
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.prep-time {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.prep-time i {
    font-size: 18px;
}

.prep-time span {
    font-size: 16px;
}

/* Mobile Responsive for Modal */
@media (max-width: 480px) {
    .meal-modal-overlay {
        padding: 6px;
    }
    
    .meal-modal-content {
        max-height: calc(100dvh - 12px);
        border-radius: 16px;
    }
    
    .meal-modal-header {
        height: 120px;
        border-radius: 16px 16px 0 0;
    }

    .meal-modal-media-toggle {
        top: 10px;
        left: 10px;
        height: 32px;
        font-size: 11px;
        padding: 0 10px;
    }

    .meal-modal-media-fullscreen {
        top: 46px;
        left: 10px;
        height: 30px;
        font-size: 10px;
        padding: 0 9px;
    }

    .media-fullscreen-overlay {
        padding: 10px;
    }

    .media-fullscreen-image {
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 70px);
        border-radius: 10px;
    }

    .media-fullscreen-close {
        top: 10px;
        right: 10px;
        height: 34px;
        font-size: 11px;
        padding: 0 10px;
    }
    
    .meal-modal-body {
        padding: 16px;
    }
    
    .meal-modal-title {
        font-size: 20px;
    }
    
    .nutrition-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .nutrition-item {
        padding: 10px 12px;
    }
    
    .meal-modal-details h4 {
        font-size: 16px;
    }

    /* On small phones, show media clearly without pink blur/tint layer. */
    .meal-modal-gradient {
        display: none;
    }
}

/* Full-screen exercise sheet (trainee workout + coach training media) */
.exercise-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.exercise-sheet__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.exercise-sheet__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
    flex-shrink: 0;
}

.exercise-sheet__topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exercise-sheet__icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.exercise-sheet__icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.exercise-sheet__icon-btn--glass {
    background: rgba(148, 163, 184, 0.28);
}

.exercise-sheet__icon-btn--glass:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.42);
}

.exercise-sheet__hero {
    flex: 0 0 auto;
    height: min(32vh, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 8px 16px 0;
}

.exercise-sheet__hero img,
.exercise-sheet__hero-video {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.exercise-sheet__hero-video {
    width: 100%;
    background: #0f0f0f;
    border-radius: 12px;
}

.exercise-sheet__hero img.fit-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.exercise-sheet__dashes {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px 8px;
    flex-shrink: 0;
}

.exercise-sheet__dash {
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}

.exercise-sheet__dash--past {
    background: #cbd5e1;
}

.exercise-sheet__dash--active {
    background: #2563eb;
}

.exercise-sheet__scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 18px 12px;
}

.exercise-sheet__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.exercise-sheet__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    min-width: 0;
}

.exercise-sheet__title--media {
    font-size: 1.25rem;
    margin-top: 4px;
}

.exercise-sheet__one-rm {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    white-space: nowrap;
}

.exercise-sheet__badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.exercise-sheet__desc {
    margin: 0;
    color: #475569;
    line-height: 1.5;
    font-size: 0.95rem;
}

.exercise-sheet__grid-head,
.exercise-sheet__grid-row {
    display: grid;
    grid-template-columns: 44px 1fr 1fr 44px;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.exercise-sheet__grid-head {
    font-weight: 700;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0 4px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.exercise-sheet__grid-head-check {
    visibility: hidden;
}

.exercise-sheet__grid-row {
    padding: 12px 4px;
    border-radius: 14px;
    margin-top: 6px;
    color: #0f172a;
}

.exercise-sheet__grid-row--active {
    background: rgba(37, 99, 235, 0.08);
}

.exercise-sheet__grid-row--done .exercise-sheet__row-check {
    color: #16a34a;
}

.exercise-sheet__accent {
    color: #2563eb;
    font-weight: 600;
}

.exercise-sheet__reps-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exercise-sheet__target {
    font-size: 0.72rem;
    color: #94a3b8;
}

.exercise-sheet__row-check {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    justify-self: end;
}

.exercise-sheet__row-check:not(:disabled):hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.exercise-sheet__row-check--on {
    color: #16a34a;
}

.exercise-sheet__row-check:disabled {
    cursor: default;
    opacity: 0.45;
}

.exercise-sheet__footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.exercise-sheet__rest-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f1f5f9;
}

.exercise-sheet__rest-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.exercise-sheet__rest-time {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2563eb;
}

.exercise-sheet__skip {
    flex: 0 0 auto;
    border: 2px solid rgba(37, 99, 235, 0.35);
    background: #fff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.exercise-sheet__skip:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: #2563eb;
}

/* Full-screen nutrition meal detail (Media → Nutrition) */
.nutrition-sheet {
    position: fixed;
    inset: 0;
    z-index: 1205;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.nutrition-sheet__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.nutrition-sheet__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
    flex-shrink: 0;
    gap: 12px;
}

.nutrition-sheet__topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nutrition-sheet__icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nutrition-sheet__icon-btn--glass {
    background: rgba(148, 163, 184, 0.28);
}

.nutrition-sheet__icon-btn--glass:hover {
    background: rgba(233, 30, 99, 0.15);
    color: #ad1457;
}

.nutrition-sheet__hero {
    flex: 0 0 auto;
    height: min(30vh, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 8px 16px 0;
}

.nutrition-sheet__hero img,
.nutrition-sheet__hero-video {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.nutrition-sheet__hero img.fit-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
}

.nutrition-sheet__hero-video {
    width: 100%;
    border-radius: 12px;
    background: #0f0f0f;
}

.nutrition-sheet__scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0));
}

.nutrition-sheet__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c2185b;
    background: rgba(233, 30, 99, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.nutrition-sheet__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}

.nutrition-sheet__desc {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.nutrition-sheet__calories-pill {
    display: inline-block;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #ec407a 0%, #e91e63 50%, #c2185b 100%);
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.25);
}

.nutrition-sheet__estimate-note {
    margin: 0 0 20px;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.nutrition-sheet__section-title {
    margin: 22px 0 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.nutrition-sheet__section-title:first-of-type {
    margin-top: 4px;
}

.nutrition-sheet__macro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nutrition-sheet__macro {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.nutrition-sheet__macro-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nutrition-sheet__macro-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e91e63;
    font-variant-numeric: tabular-nums;
}

.nutrition-sheet__ingredients {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nutrition-sheet__ingredient {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.45;
}

.nutrition-sheet__ingredient .fa-check-circle {
    color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
}

.nutrition-sheet__ingredients-fallback {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.nutrition-sheet__prep-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #f06292 0%, #e91e63 45%, #ad1457 100%);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.28);
}

.nutrition-sheet__prep-bar .fa-clock {
    opacity: 0.95;
    font-size: 1.1rem;
}

@media (max-width: 380px) {
    .nutrition-sheet__macro-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Workout screen responsiveness (all sizes)
   ========================================================= */

.role-app--trainee .workout-section {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.role-app--trainee .workout-header-section {
    border-radius: 16px;
    padding: 22px;
}

.role-app--trainee .exercise-group {
    border-radius: 14px;
}

.role-app--trainee .exercise-item {
    min-height: 96px;
}

@media (min-width: 768px) {
    .role-app--trainee {
        padding-left: 20px;
        padding-right: 20px;
    }

    .role-app--trainee .workout-stats {
        justify-content: space-between;
        gap: 22px;
    }

    .role-app--trainee .exercise-group {
        padding: 18px;
    }

    .role-app--trainee .exercise-item {
        padding: 14px 16px;
        gap: 14px;
    }

    .role-app--trainee .exercise-thumbnail {
        width: 84px;
        height: 84px;
    }

    .role-app--trainee .exercise-name {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .role-app--trainee {
        padding-left: 28px;
        padding-right: 28px;
    }

    .role-app--trainee .workout-header-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 24px;
        row-gap: 16px;
        align-items: center;
    }

    .role-app--trainee .workout-header-section h4 {
        margin: 0;
        font-size: 1.25rem;
    }

    .role-app--trainee .workout-progress {
        margin: 0;
        text-align: start;
    }

    .role-app--trainee .progress-counter {
        padding: 10px 16px;
        border-radius: 14px;
    }

    .role-app--trainee .workout-stats {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .role-app--trainee .workout-header-section .workout-stats .stat-item {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 12px;
        padding: 10px 8px;
    }

    .role-app--trainee .exercise-group {
        padding: 20px;
    }

    .role-app--trainee .exercise-item {
        min-height: 108px;
    }
}

@media (min-width: 1280px) {
    .exercise-sheet {
        background: rgba(15, 23, 42, 0.34);
        backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .exercise-sheet__inner {
        width: min(1160px, 96vw);
        max-width: none;
        height: min(92vh, 920px);
        border-radius: 22px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    }

    .exercise-sheet__hero {
        height: min(42vh, 420px);
        padding-top: 14px;
    }

    .exercise-sheet__hero img,
    .exercise-sheet__hero-video {
        border-radius: 14px;
    }

    .exercise-sheet__scroll {
        padding: 12px 26px 18px;
    }
}

@media (max-width: 767px) {
    .role-app--trainee .workout-header-section {
        padding: 16px;
        border-radius: 14px;
    }

    .role-app--trainee .workout-stats {
        gap: 10px;
        flex-wrap: wrap;
    }

    .role-app--trainee .workout-header-section .workout-stats .stat-item {
        min-width: 80px;
    }

    .role-app--trainee .exercise-item {
        min-height: 74px;
        border-radius: 10px;
    }

    .role-app--trainee .exercise-arrow {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .exercise-sheet__footer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .exercise-sheet__skip {
        width: 100%;
    }
}

/* =========================================================
   Media nutrition sheet responsiveness (all sizes)
   ========================================================= */

@media (min-width: 1024px) {
    .nutrition-sheet__inner {
        width: min(920px, 94vw);
        max-width: none;
    }

    .nutrition-sheet__hero {
        height: min(36vh, 320px);
        padding-top: 12px;
    }

    .nutrition-sheet__scroll {
        padding: 14px 24px 16px;
    }

    .nutrition-sheet__title-row {
        align-items: center;
        gap: 16px;
    }

    .nutrition-sheet__title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .nutrition-sheet {
        background: rgba(15, 23, 42, 0.34);
        backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .nutrition-sheet__inner {
        width: min(1160px, 95vw);
        max-width: none;
        height: min(92vh, 920px);
        border-radius: 22px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    }

    .nutrition-sheet__hero {
        height: min(42vh, 430px);
    }

    .nutrition-sheet__hero img,
    .nutrition-sheet__hero-video {
        border-radius: 14px;
    }
}

@media (max-width: 767px) {
    .nutrition-sheet__inner {
        width: 100%;
        max-width: 100%;
    }

    .nutrition-sheet__hero {
        height: min(30vh, 220px);
        padding: 8px 12px 0;
    }

    .nutrition-sheet__scroll {
        padding: 10px 14px 12px;
    }

    .nutrition-sheet__title {
        font-size: 1.1rem;
    }

    .nutrition-sheet__macro-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
