.fg-planner-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: 'DM Sans', sans-serif;
}

/* Form */
.fg-planner-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}
.fg-planner-subtitle {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 32px;
}
.fg-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.fg-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.fg-input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.fg-input-prefix span {
    padding: 0 12px;
    color: #6B7280;
    font-size: 15px;
    background: #F9FAFB;
    border-right: 1px solid #D1D5DB;
    height: 100%;
    display: flex;
    align-items: center;
    min-height: 50px;
}
.fg-input-prefix input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #111;
    min-height: 50px;
}
.fg-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #111;
    background: #fff;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* Pills */
.fg-prefs-section { margin-bottom: 28px; }
.fg-prefs-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}
.fg-prefs-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-pill {
    padding: 8px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #6B7280;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.fg-pill.active {
    background: #1D9E75;
    border-color: #1D9E75;
    color: #fff;
}

/* Generate Button */
.fg-generate-btn {
    width: 100%;
    padding: 16px;
    background: #1D4E35;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 12px;
}
.fg-generate-btn:hover { background: #163C29; }
.fg-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.fg-limit-note {
    font-size: 12px;
    color: #6B7280;
    text-align: center;
}
.fg-limit-note a { color: #1D9E75; }

/* Loading */
.fg-loading {
    text-align: center;
    padding: 60px 20px;
}
.fg-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E1F5EE;
    border-top-color: #1D9E75;
    border-radius: 50%;
    animation: fg-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes fg-spin { to { transform: rotate(360deg); } }

/* Limit Reached */
.fg-limit-reached {
    text-align: center;
    padding: 60px 20px;
    background: #FFF7ED;
    border-radius: 16px;
}
.fg-upgrade-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 28px;
    background: #1D4E35;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Results */
.fg-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.fg-results-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #111;
}
.fg-budget-badge {
    background: #E1F5EE;
    color: #1D9E75;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
}
.fg-summary {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Meal Cards */
.fg-meal-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}
.fg-meal-card {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 20px 24px;
    background: #fff;
}
.fg-meal-day {
    font-size: 11px;
    font-weight: 500;
    color: #1D9E75;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.fg-meal-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}
.fg-meal-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 14px;
}
.fg-recipe-locked {
    font-size: 13px;
    color: #9CA3AF;
    border-top: 1px solid #F3F4F6;
    padding-top: 12px;
}
.fg-recipe-locked a { color: #1D9E75; }

/* Shopping List */
.fg-shopping-list {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 28px;
}
.fg-shopping-list h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
}
.fg-shopping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
    color: #374151;
}
.fg-shopping-item:last-of-type { border-bottom: none; }
.fg-item-left { display: flex; flex-direction: column; gap: 2px; }
.fg-item-name { font-weight: 500; }
.fg-item-qty { font-size: 12px; color: #9CA3AF; }
.fg-item-price { color: #1D9E75; font-weight: 500; }
.fg-shopping-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
    color: #111;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 2px solid #E5E7EB;
    margin-bottom: 16px;
}
.fg-download-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px dashed #D1D5DB;
    background: #fff;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.fg-plus-badge {
    background: #F3F4F6;
    color: #6B7280;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Tips */
.fg-tips-box {
    background: #E1F5EE;
    border-radius: 14px;
    padding: 24px 24px;
    margin-bottom: 28px;
}
.fg-tips-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: #1D4E35;
    margin-bottom: 14px;
}
.fg-tip {
    font-size: 14px;
    color: #1D4E35;
    padding: 6px 0;
    display: flex;
    gap: 8px;
    line-height: 1.6;
}
.fg-tip::before { content: '💡'; }

/* Mobile */
@media (max-width: 600px) {
    .fg-input-grid { grid-template-columns: 1fr; }
    .fg-planner-title { font-size: 26px; }
    .fg-results-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}