body {
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--main-bg-color, linear-gradient(50deg, #a2d1ff, #ffffff));
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 520px;
    height: 520px;
    filter: blur(60px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -160px;
    left: -180px;
    background: radial-gradient(circle at 30% 30%, var(--gradient-start, #bd34fe), transparent 55%),
        radial-gradient(circle at 70% 70%, var(--gradient-middle, #e0321b), transparent 60%);
}

body::after {
    bottom: -180px;
    right: -180px;
    background: radial-gradient(circle at 30% 30%, var(--gradient-end, #41d1ff), transparent 55%),
        radial-gradient(circle at 70% 70%, var(--gradient-middle, #e0321b), transparent 60%);
}

.diet-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    color: var(--main-text-color);
    min-height: 100vh;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.back-btn,
.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 12px;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.06);
}

.back-btn {
    font-size: 15px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.75);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-3px);
}

.reset-btn {
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 140, 140, 0.14);
    color: rgba(190, 58, 58, 0.95);
    border: 1px solid rgba(255, 140, 140, 0.22);
}

.reset-btn:hover {
    background: rgba(255, 92, 92, 0.28);
    transform: translateY(-1px);
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--gradient-start, #bd34fe), var(--gradient-middle, #e0321b), var(--gradient-end, #41d1ff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.top-section-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 46px rgba(31, 38, 135, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    box-shadow: 0 26px 70px rgba(31, 38, 135, 0.12);
    transform: translateY(-2px);
}

.glass-card--today {
    border-left: 5px solid var(--gradient-start, #bd34fe);
}

.glass-card--prep {
    border-left: 5px solid var(--gradient-middle, #e0321b);
    background: rgba(255, 255, 255, 0.74);
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    display: block;
    width: 7px;
    height: 22px;
    background: linear-gradient(to bottom, var(--gradient-start, #bd34fe), var(--gradient-middle, #e0321b));
    border-radius: 99px;
}

.today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 14px;
}

.today-day {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--gradient-start, #bd34fe), var(--gradient-middle, #e0321b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.today-date {
    font-size: 14px;
    color: rgba(90, 90, 90, 0.9);
    font-weight: 600;
}

.meal-section {
    margin-bottom: 18px;
}

.meal-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--purple-text-color, #747bff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.meal-title::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-left: 10px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
}

.food-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-item {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.food-item:hover {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 26px rgba(31, 38, 135, 0.06);
    transform: translateY(-1px);
}

.food-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gradient-start, #bd34fe);
    border-radius: 7px;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.16s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.4);
}

.food-checkbox:checked {
    background-color: var(--gradient-start, #bd34fe);
    border-color: var(--gradient-start, #bd34fe);
}

.food-checkbox.is-prep {
    border-color: var(--gradient-middle, #e0321b);
}

.food-checkbox.is-prep:checked {
    background-color: var(--gradient-middle, #e0321b);
    border-color: var(--gradient-middle, #e0321b);
}

.food-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
}

.food-name {
    font-size: 15px;
    font-weight: 800;
    flex-grow: 1;
}

.food-quantity {
    font-size: 13px;
    color: rgba(70, 70, 70, 0.95);
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 10px;
    border-radius: 999px;
    margin-left: 10px;
    font-weight: 700;
}

.food-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.food-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.food-title-row .food-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.food-macros {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: rgba(60, 60, 60, 0.92);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 7px 10px;
    border-radius: 12px;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-total {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(75, 75, 75, 0.92);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 10px 12px;
    border-radius: 14px;
}

.food-item.checked {
    opacity: 0.7;
}

.food-item.checked .food-name,
.food-item.checked .food-quantity {
    text-decoration: line-through;
}

.nutrition-info {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(247, 108, 198, 0.08), rgba(65, 209, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 1.65;
    color: rgba(60, 60, 60, 0.95);
}

.macro-legend {
    margin: 4px 0 14px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(85, 85, 85, 0.9);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 10px 12px;
    border-radius: 14px;
}

.prep-tip {
    margin: 2px 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(80, 80, 80, 0.9);
}

.day-total {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(75, 75, 75, 0.92);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 10px 12px;
    border-radius: 14px;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.day-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.day-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 50px rgba(31, 38, 135, 0.08);
    transform: translateY(-2px);
}

.day-card.active {
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 60px rgba(31, 38, 135, 0.12);
    background: rgba(255, 255, 255, 0.78);
    outline: 2px solid rgba(189, 52, 254, 0.22);
}

.day-card-header {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    border: 1px solid rgba(189, 52, 254, 0.25);
    color: rgba(189, 52, 254, 1);
    background: rgba(189, 52, 254, 0.1);
    flex-shrink: 0;
}

.mini-meal-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: rgba(60, 60, 60, 0.95);
    gap: 12px;
}

.mini-meal-label {
    font-weight: 900;
    color: var(--purple-text-color, #747bff);
    min-width: 34px;
}

.execution-points {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 50px rgba(31, 38, 135, 0.06);
}

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

.point-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(55, 55, 55, 0.95);
}

.point-item::before {
    content: "•";
    color: var(--gradient-start, #bd34fe);
    font-size: 22px;
    line-height: 18px;
    margin-top: 1px;
}

@media (max-width: 900px) {
    .top-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .diet-container {
        padding: 14px;
    }

    .today-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .header-title {
        display: none;
    }

    .header-nav {
        padding: 10px 0;
    }
}
