/* ===== Hero Card ===== */
.hero-card {
    background: linear-gradient(145deg, #2c2118 0%, #4a3c30 100%);
    color: #f5f0ea;
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    margin: 32px 0 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fadeInUp .8s cubic-bezier(.22,1,.36,1);
}
.hero-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(146,64,14,.25), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(13,148,136,.15), transparent 50%);
    pointer-events: none;
}
.hero-card::after {
    content: "";
    position: absolute;
    top: 20px; right: 24px;
    width: 36px; height: 36px;
    border: 2px solid rgba(185,28,28,.35);
    border-radius: 3px;
    transform: rotate(4deg);
}
.hero-card h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -.01em;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    font-size: .9rem;
    opacity: .85;
    position: relative;
    z-index: 1;
}
.hero-meta span::before { margin-right: 4px; }
.hero-meta strong { color: var(--primary-light); font-weight: 600; }

/* ===== Section Cards ===== */
.section-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    position: relative;
    animation: fadeInUp .6s cubic-bezier(.22,1,.36,1) backwards;
}
.section-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--gray-900);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-card h2::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.section-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gray-700);
    margin: 18px 0 10px;
}

/* ===== Tables ===== */
.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin: 12px 0 20px;
}
.plan-table th, .plan-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
.plan-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.plan-table tr:hover td { background: var(--gray-50); }
.plan-table td strong { color: var(--gray-900); font-weight: 600; }

/* ===== Details / Summary (collapsible) ===== */
.day-details {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin: 20px 0;
    overflow: hidden;
    background: #fff;
}
.day-details summary {
    padding: 16px 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    color: var(--gray-800);
    transition: background .2s;
}
.day-details summary:hover { background: var(--gray-100); }
.day-details summary::before {
    content: "\25B8";
    font-size: .7rem;
    color: var(--primary);
    transition: transform .25s ease;
    display: inline-block;
}
.day-details[open] summary::before { transform: rotate(90deg); }
.day-details .day-body { padding: 24px 28px; }

/* ===== Checklist ===== */
li.checklist-item {
    list-style: none;
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: color .3s;
}
li.checklist-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 3px;
    background: var(--gray-50);
    cursor: pointer;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
}
li.checklist-item input[type="checkbox"]:hover {
    border-color: var(--primary);
}
li.checklist-item input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
li.checklist-item input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
li.checklist-item.checked {
    color: var(--gray-400);
    text-decoration: line-through;
}

/* ===== Budget Chart ===== */
.chart-container { max-width: 360px; margin: 24px auto; }
.chart-container canvas { max-height: 300px; }

/* ===== Food List Grid ===== */
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .food-grid { grid-template-columns: 1fr; } }

/* ===== Side Nav — timeline dots ===== */
.side-nav {
    position: sticky;
    top: 32px;
    float: left;
    width: 160px;
    margin-right: 32px;
    padding: 0;
    border-left: 1px solid var(--gray-200);
}
.side-nav a {
    display: block;
    padding: 7px 0 7px 22px;
    font-size: .82rem;
    font-weight: 400;
    color: var(--gray-500);
    text-decoration: none;
    position: relative;
    transition: color .2s;
}
.side-nav a::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-300);
    background: var(--gray-50);
    transition: all .25s;
}
.side-nav a:hover,
.side-nav a.active { color: var(--primary); }
.side-nav a:hover::before,
.side-nav a.active::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(146,64,14,.12);
}
.main-content { margin-left: 192px; }

/* ===== Table horizontal scroll wrapper ===== */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Plan Responsive ===== */
@media (max-width: 768px) {
    .side-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 240px;
        background: #fff;
        z-index: 999;
        border-left: none;
        border-right: 1px solid var(--gray-200);
        transform: translateX(-100%);
        transition: transform .3s ease;
        padding: 60px 0 24px;
        overflow-y: auto;
        float: none;
        margin-right: 0;
        box-shadow: none;
    }
    .side-nav.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    .main-content { margin-left: 0; }

    .hero-card { padding: 28px 24px; margin: 24px 0 28px; }
    .hero-card h1 { font-size: 1.6rem; }
    .section-card { padding: 20px 18px; margin-bottom: 20px; }
    .plan-table { font-size: .8rem; }
    .plan-table th, .plan-table td { padding: 8px; }

    .day-details summary { padding: 14px 18px; font-size: 1rem; }
    .day-details .day-body { padding: 18px 16px; }

    .chart-container { max-width: 280px; }
    .chart-container canvas { max-height: 240px; }

    li.checklist-item input[type="checkbox"] {
        width: 20px; height: 20px;
    }
}

@media (max-width: 480px) {
    .hero-card { padding: 24px 18px; margin: 20px 0 24px; }
    .hero-card h1 { font-size: 1.4rem; }
    .hero-meta { font-size: .82rem; gap: 4px 16px; }
    .section-card { padding: 16px 14px; margin-bottom: 16px; }
    .section-card h2 { font-size: 1.15rem; }
    .day-details summary { padding: 12px 14px; font-size: .95rem; }
    .day-details .day-body { padding: 14px 12px; }
}
